diff --git a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx index f1af66653fcf3..4c32afabb0c21 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" + /> +
+
+ -
-
+ } + {!this.props.queryEditor.schema && - } - {!this.props.queryEditor.schema && -