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(