Skip to content

Commit

Permalink
[sql lab] address lingering spinner in schema select (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Mar 31, 2017
1 parent abe79d1 commit 513a090
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] });
Expand Down

0 comments on commit 513a090

Please sign in to comment.