mirror of
https://github.com/apache/superset.git
synced 2026-05-13 03:45:12 +00:00
fix: Change database event in core (#35071)
(cherry picked from commit 4c2b27e7f0)
This commit is contained in:
committed by
Michael S. Molina
parent
bf7c97d807
commit
5c43b13c1e
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user