fix: SQL Lab tab events (#35105)

(cherry picked from commit e729b2dbb4)
This commit is contained in:
Michael S. Molina
2025-09-11 17:53:51 -03:00
committed by Joe Li
parent 8c1fdcb179
commit f3163e1c27
7 changed files with 17 additions and 0 deletions

View File

@@ -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,
};