fix(SQL Lab): syncTable on new tabs (#35216)

(cherry picked from commit 94686ddfbe)
This commit is contained in:
Beto Dealmeida
2025-09-24 11:58:54 -04:00
committed by Joe Li
parent 7263133c52
commit 0a89b306e5
5 changed files with 91 additions and 3 deletions

View File

@@ -952,7 +952,7 @@ export function addTable(queryEditor, tableName, catalogName, schemaName) {
const { dbId } = getUpToDateQuery(getState(), queryEditor, queryEditor.id);
const table = {
dbId,
queryEditorId: queryEditor.id,
queryEditorId: queryEditor.tabViewId ?? queryEditor.id,
catalog: catalogName,
schema: schemaName,
name: tableName,