mirror of
https://github.com/apache/superset.git
synced 2026-07-30 02:22:31 +00:00
fix: SQL Lab tab events (#35105)
(cherry picked from commit e729b2dbb4)
This commit is contained in:
committed by
Joe Li
parent
8c1fdcb179
commit
f3163e1c27
@@ -391,6 +391,7 @@ export function runQueryFromSqlEditor(
|
||||
dbId: qe.dbId,
|
||||
sql: qe.selectedText || qe.sql,
|
||||
sqlEditorId: qe.tabViewId ?? qe.id,
|
||||
immutableId: qe.immutableId,
|
||||
tab: qe.name,
|
||||
catalog: qe.catalog,
|
||||
schema: qe.schema,
|
||||
@@ -533,6 +534,7 @@ export function addQueryEditor(queryEditor) {
|
||||
const newQueryEditor = {
|
||||
...queryEditor,
|
||||
id: nanoid(11),
|
||||
immutableId: nanoid(11),
|
||||
loaded: true,
|
||||
inLocalStorage: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user