Skip to content
Snippets Groups Projects
Commit f82c9ea6 authored by Tom Robinson's avatar Tom Robinson
Browse files

Keep SQL editor in SQL with query

parent c5088589
Branches
Tags
No related merge requests found
......@@ -37,6 +37,13 @@ export default class NativeQueryEditor extends Component {
this.loadAceEditor();
}
componentDidUpdate() {
var editor = ace.edit("id_sql");
if (editor.getValue() !== this.props.query.native.query) {
editor.setValue(this.props.query.native.query)
}
}
loadAceEditor() {
var editor = ace.edit("id_sql");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment