fix: DB add modal (#15981)

This commit is contained in:
Beto Dealmeida
2021-07-30 11:32:48 -07:00
committed by GitHub
parent 2d61f15153
commit f1b57c0d88

View File

@@ -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({