Skip to content

Commit

Permalink
Enable overwrite sql in QueryHistory (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Dec 5, 2016
1 parent 89fc9d7 commit d8864bc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class AceEditorWrapper extends React.PureComponent {
if (!areArraysShallowEqual(this.props.tables, nextProps.tables)) {
this.setAutoCompleter(nextProps);
}
if (nextProps.sql !== this.props.sql) {
this.setState({ sql: nextProps.sql });
}
}
textChange(text) {
this.setState({ sql: text });
Expand Down

0 comments on commit d8864bc

Please sign in to comment.