mirror of
https://github.com/apache/superset.git
synced 2026-04-09 19:35:21 +00:00
Enable overwrite sql in QueryHistory (#1731)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user