diff --git a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx index f1af66653f..4c32afabb0 100644 --- a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx +++ b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx @@ -194,7 +194,7 @@ class SqlEditor extends React.PureComponent { > -
-
- ( -
- Database: {o.label} -
- )} - mutator={this.dbMutator.bind(this)} - placeholder="Select a database" - /> -
-
+
+
+ ( +
+ Database: {o.label} +
+ )} + mutator={this.dbMutator.bind(this)} + placeholder="Select a database" + /> +
+
+ ( -
- Schema: {o.label} -
- )} - isLoading={this.state.schemaLoading} + name="select-table" + ref="selectTable" + isLoading={this.state.tableLoading} + value={this.state.tableName} + placeholder={`Add a table (${this.state.tableOptions.length})`} autosize={false} - onChange={this.changeSchema.bind(this)} + onChange={this.changeTable.bind(this)} + filterOptions={this.state.filterOptions} + options={this.state.tableOptions} + /> + } + {!this.props.queryEditor.schema && + - } - {!this.props.queryEditor.schema && -