Skip to content

Commit

Permalink
fix(alerts reports): python config can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Always-prog committed Feb 7, 2023
1 parent f01fc4b commit a150689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,11 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
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,
};
});

Expand Down

0 comments on commit a150689

Please sign in to comment.