diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js index 9485cfb650ca..9a2a976e8baf 100644 --- a/superset-frontend/src/SqlLab/actions/sqlLab.js +++ b/superset-frontend/src/SqlLab/actions/sqlLab.js @@ -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(