Skip to content

Commit

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

* fix lint

(cherry picked from commit 9c08bc0)
  • Loading branch information
pkdotson authored and sadpandajoe committed Feb 8, 2022
1 parent 12067e7 commit b344d4e
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 b344d4e

Please sign in to comment.