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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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(