mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -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)) {
|
if (!areArraysShallowEqual(this.props.tables, nextProps.tables)) {
|
||||||
this.setAutoCompleter(nextProps);
|
this.setAutoCompleter(nextProps);
|
||||||
}
|
}
|
||||||
|
if (nextProps.sql !== this.props.sql) {
|
||||||
|
this.setState({ sql: nextProps.sql });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
textChange(text) {
|
textChange(text) {
|
||||||
this.setState({ sql: text });
|
this.setState({ sql: text });
|
||||||
|
Loading…
Reference in New Issue
Block a user