From 8e68df5fbd0af1e44f1cb528e151714b69362f20 Mon Sep 17 00:00:00 2001 From: EugeneTorap Date: Mon, 14 Nov 2022 23:54:23 +0300 Subject: [PATCH] Fix dbId is undefined --- .../src/SqlLab/components/SqlEditorLeftBar/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx b/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx index a644d9e80d19..4b73cffff986 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx +++ b/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx @@ -103,7 +103,7 @@ const SqlEditorLeftBar = ({ setEmptyState, }: SqlEditorLeftBarProps) => { const dispatch = useDispatch(); - const queryEditor = useQueryEditor(queryEditorId, ['schema']); + const queryEditor = useQueryEditor(queryEditorId, ['dbId', 'schema']); const [emptyResultsWithSearch, setEmptyResultsWithSearch] = useState(false); const [userSelectedDb, setUserSelected] = useState(