You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by aa...@apache.org on 2022/02/08 17:23:57 UTC

[superset] branch master updated: fix: change database database selector (#18609)

This is an automated email from the ASF dual-hosted git repository.

aafghahi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c08bc0  fix: change database database selector (#18609)
9c08bc0 is described below

commit 9c08bc0ffc51f5fa779ff90ca061668b7b332ad7
Author: Phillip Kelley-Dotson <pk...@yahoo.com>
AuthorDate: Tue Feb 8 09:22:20 2022 -0800

    fix: change database database selector (#18609)
    
    * fix: change database selector
    
    * fix lint
---
 superset-frontend/src/SqlLab/actions/sqlLab.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index 9485cfb..9a2a976 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(