From a150689ef60271f288d83913efe61908ce278ff1 Mon Sep 17 00:00:00 2001 From: Stepan Date: Tue, 7 Feb 2023 22:30:25 +0300 Subject: [PATCH] fix(alerts reports): python config can be undefined --- superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx b/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx index 6be0ef99c831f..0d6ea92d89930 100644 --- a/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx +++ b/superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx @@ -507,11 +507,11 @@ const AlertReportModal: FunctionComponent = ({ const conf = state.common?.conf; return { ALERT_REPORTS_DEFAULT_WORKING_TIMEOUT: - conf.ALERT_REPORTS_DEFAULT_WORKING_TIMEOUT ?? DEFAULT_WORKING_TIMEOUT, + conf?.ALERT_REPORTS_DEFAULT_WORKING_TIMEOUT ?? DEFAULT_WORKING_TIMEOUT, ALERT_REPORTS_DEFAULT_CRON_VALUE: - conf.ALERT_REPORTS_DEFAULT_CRON_VALUE ?? DEFAULT_CRON_VALUE, + conf?.ALERT_REPORTS_DEFAULT_CRON_VALUE ?? DEFAULT_CRON_VALUE, ALERT_REPORTS_DEFAULT_RETENTION: - conf.ALERT_REPORTS_DEFAULT_RETENTION ?? DEFAULT_RETENTION, + conf?.ALERT_REPORTS_DEFAULT_RETENTION ?? DEFAULT_RETENTION, }; });