From c5896168830c0901a6488817d970a92ce3fa8f9a Mon Sep 17 00:00:00 2001 From: graceguo-supercat Date: Fri, 28 Apr 2017 11:42:48 -0700 Subject: [PATCH] [sql lab] Update event handler name (#2680) Update SqlEditor database change event handler name to be more specific. --- .../assets/javascripts/SqlLab/components/SqlEditorLeftBar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/assets/javascripts/SqlLab/components/SqlEditorLeftBar.jsx b/superset/assets/javascripts/SqlLab/components/SqlEditorLeftBar.jsx index 4f258588cc..efde76fa48 100644 --- a/superset/assets/javascripts/SqlLab/components/SqlEditorLeftBar.jsx +++ b/superset/assets/javascripts/SqlLab/components/SqlEditorLeftBar.jsx @@ -35,7 +35,7 @@ class SqlEditorLeftBar extends React.PureComponent { this.fetchSchemas(this.props.queryEditor.dbId); this.fetchTables(this.props.queryEditor.dbId, this.props.queryEditor.schema); } - onChange(db) { + onDatabaseChange(db) { const val = db ? db.value : null; this.setState({ schemaOptions: [] }); this.props.actions.queryEditorSetSchema(this.props.queryEditor, null); @@ -144,7 +144,7 @@ class SqlEditorLeftBar extends React.PureComponent { '_oc_DatabaseView=database_name&' + '_od_DatabaseView=asc' } - onChange={this.onChange.bind(this)} + onChange={this.onDatabaseChange.bind(this)} value={this.props.queryEditor.dbId} databaseId={this.props.queryEditor.dbId} actions={this.props.actions}