mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore(sqllab): Relocate get bootstrap data logic (#24936)
This commit is contained in:
@@ -570,15 +570,10 @@ export function addQueryEditor(queryEditor) {
|
||||
export function addNewQueryEditor() {
|
||||
return function (dispatch, getState) {
|
||||
const {
|
||||
sqlLab: {
|
||||
queryEditors,
|
||||
tabHistory,
|
||||
unsavedQueryEditor,
|
||||
defaultDbId,
|
||||
databases,
|
||||
},
|
||||
sqlLab: { queryEditors, tabHistory, unsavedQueryEditor, databases },
|
||||
common,
|
||||
} = getState();
|
||||
const defaultDbId = common.conf.SQLLAB_DEFAULT_DBID;
|
||||
const activeQueryEditor = queryEditors.find(
|
||||
qe => qe.id === tabHistory[tabHistory.length - 1],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user