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 13c0fc15c3f..c047e1bde1d 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 = ({ } } - 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({