mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Enable overwrite sql in QueryHistory (#1731)
This commit is contained in:
parent
89fc9d7c80
commit
d8864bc92b
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user