mirror of
https://github.com/apache/superset.git
synced 2026-04-10 11:55:24 +00:00
[sql lab] address lingering spinner in schema select (#2512)
This commit is contained in:
committed by
GitHub
parent
abe79d1427
commit
513a090cdc
@@ -32,8 +32,9 @@ class SqlEditorLeftBar extends React.PureComponent {
|
||||
this.fetchTables(this.props.queryEditor.dbId, this.props.queryEditor.schema);
|
||||
}
|
||||
onChange(db) {
|
||||
const val = (db) ? db.value : null;
|
||||
const val = db ? db.value : null;
|
||||
this.setState({ schemaOptions: [] });
|
||||
this.props.actions.queryEditorSetSchema(this.props.queryEditor, null);
|
||||
this.props.actions.queryEditorSetDb(this.props.queryEditor, val);
|
||||
if (!(db)) {
|
||||
this.setState({ tableOptions: [] });
|
||||
|
||||
Reference in New Issue
Block a user