You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/07/30 18:33:37 UTC
[superset] branch master updated: fix: DB add modal (#15981)
This is an automated email from the ASF dual-hosted git repository.
hugh 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 f1b57c0 fix: DB add modal (#15981)
f1b57c0 is described below
commit f1b57c0d882959e29416df2f4e64f8f6e9506c1c
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Fri Jul 30 11:32:48 2021 -0700
fix: DB add modal (#15981)
---
superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
index 13c0fc1..c047e1b 100644
--- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
+++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
@@ -557,7 +557,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
}
}
- if (dbToUpdate.parameters.catalog) {
+ if (dbToUpdate?.parameters?.catalog) {
// need to stringify gsheets catalog to allow it to be seralized
dbToUpdate.extra_json = {
engine_params: JSON.stringify({