fix: Change database event in core (#35071)

(cherry picked from commit 4c2b27e7f0)
This commit is contained in:
Michael S. Molina
2025-09-09 11:50:49 -03:00
committed by Michael S. Molina
parent bf7c97d807
commit 5c43b13c1e

View File

@@ -102,8 +102,11 @@ export const onDidChangeEditorDatabase: typeof sqlLabType.onDidChangeEditorDatab
createActionListener(
predicate(QUERY_EDITOR_SETDB),
listener,
(action: { type: string; queryEditor: { dbId: number } }) =>
action.queryEditor.dbId,
(action: {
type: string;
dbId?: number;
queryEditor: { dbId: number };
}) => action.dbId || action.queryEditor.dbId,
thisArgs,
);