Skip to content

Commit

Permalink
fix: change database database selector (#18609)
Browse files Browse the repository at this point in the history
* fix: change database selector

* fix lint
  • Loading branch information
pkdotson committed Feb 8, 2022
1 parent 41f3c95 commit 9c08bc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,11 @@ export function queryEditorSetSchema(queryEditor, schema) {

return sync
.then(() =>
dispatch({ type: QUERY_EDITOR_SET_SCHEMA, queryEditor, schema }),
dispatch({
type: QUERY_EDITOR_SET_SCHEMA,
queryEditor: queryEditor || {},
schema: schema || {},
}),
)
.catch(() =>
dispatch(
Expand Down

0 comments on commit 9c08bc0

Please sign in to comment.