We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e4e8d commit 4c2b27eCopy full SHA for 4c2b27e
superset-frontend/src/core/sqlLab.ts
@@ -102,8 +102,11 @@ export const onDidChangeEditorDatabase: typeof sqlLabType.onDidChangeEditorDatab
102
createActionListener(
103
predicate(QUERY_EDITOR_SETDB),
104
listener,
105
- (action: { type: string; queryEditor: { dbId: number } }) =>
106
- action.queryEditor.dbId,
+ (action: {
+ type: string;
107
+ dbId?: number;
108
+ queryEditor: { dbId: number };
109
+ }) => action.dbId || action.queryEditor.dbId,
110
thisArgs,
111
);
112
0 commit comments