Skip to content

Commit

Permalink
[sql lab] Update event handler name (#2680)
Browse files Browse the repository at this point in the history
Update SqlEditor database change event handler name to be more specific.
  • Loading branch information
graceguo-supercat authored Apr 28, 2017
1 parent 58309f2 commit c589616
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit c589616

Please sign in to comment.