mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[sql lab] Update event handler name (#2680)
Update SqlEditor database change event handler name to be more specific.
This commit is contained in:
parent
58309f275f
commit
c589616883
@ -35,7 +35,7 @@ class SqlEditorLeftBar extends React.PureComponent {
|
|||||||
this.fetchSchemas(this.props.queryEditor.dbId);
|
this.fetchSchemas(this.props.queryEditor.dbId);
|
||||||
this.fetchTables(this.props.queryEditor.dbId, this.props.queryEditor.schema);
|
this.fetchTables(this.props.queryEditor.dbId, this.props.queryEditor.schema);
|
||||||
}
|
}
|
||||||
onChange(db) {
|
onDatabaseChange(db) {
|
||||||
const val = db ? db.value : null;
|
const val = db ? db.value : null;
|
||||||
this.setState({ schemaOptions: [] });
|
this.setState({ schemaOptions: [] });
|
||||||
this.props.actions.queryEditorSetSchema(this.props.queryEditor, null);
|
this.props.actions.queryEditorSetSchema(this.props.queryEditor, null);
|
||||||
@ -144,7 +144,7 @@ class SqlEditorLeftBar extends React.PureComponent {
|
|||||||
'_oc_DatabaseView=database_name&' +
|
'_oc_DatabaseView=database_name&' +
|
||||||
'_od_DatabaseView=asc'
|
'_od_DatabaseView=asc'
|
||||||
}
|
}
|
||||||
onChange={this.onChange.bind(this)}
|
onChange={this.onDatabaseChange.bind(this)}
|
||||||
value={this.props.queryEditor.dbId}
|
value={this.props.queryEditor.dbId}
|
||||||
databaseId={this.props.queryEditor.dbId}
|
databaseId={this.props.queryEditor.dbId}
|
||||||
actions={this.props.actions}
|
actions={this.props.actions}
|
||||||
|
Loading…
Reference in New Issue
Block a user