[explorev2] making Datasource an Viz controls not clearable (#1845)

* [explorev2] making Datasource an Viz controls not clearable

* Making choices default to empty list
This commit is contained in:
Maxime Beauchemin
2016-12-15 08:53:15 -08:00
committed by GitHub
parent 92aa1a6124
commit bf67d64708
2 changed files with 19 additions and 12 deletions

View File

@@ -39,6 +39,7 @@ export const fields = {
datasource: {
type: 'SelectField',
label: 'Datasource',
clearable: false,
default: null,
choices: [],
description: '',
@@ -47,6 +48,7 @@ export const fields = {
viz_type: {
type: 'SelectField',
label: 'Viz',
clearable: false,
default: 'table',
choices: formatSelectOptions(Object.keys(visTypes)),
description: 'The type of visualization to display',