fix: change database database selector (#18609)

* fix: change database selector

* fix lint
This commit is contained in:
Phillip Kelley-Dotson
2022-02-08 09:22:20 -08:00
committed by GitHub
parent 41f3c95345
commit 9c08bc0ffc

View File

@@ -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(