mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
feat: saved query list actions (#11109)
This commit is contained in:
@@ -150,8 +150,12 @@ class TabbedSqlEditors extends React.PureComponent {
|
||||
this.props.actions.addQueryEditor(newQueryEditor);
|
||||
}
|
||||
this.popNewTab();
|
||||
} else if (this.props.queryEditors.length === 0) {
|
||||
} else if (query.new || this.props.queryEditors.length === 0) {
|
||||
this.newQueryEditor();
|
||||
|
||||
if (query.new) {
|
||||
window.history.replaceState({}, document.title, this.state.sqlLabUrl);
|
||||
}
|
||||
} else {
|
||||
const qe = this.activeQueryEditor();
|
||||
const latestQuery = this.props.queries[qe.latestQueryId];
|
||||
|
||||
Reference in New Issue
Block a user