You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2024/03/04 16:34:37 UTC

(superset) branch master updated: fix(Alerts & Reports): Fixing bug that resets cron value to default when empty (#27262)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina 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 32179f1a85 fix(Alerts & Reports): Fixing bug that resets cron value to default when empty   (#27262)
32179f1a85 is described below

commit 32179f1a85a3779a03224fbaa061a123e34e52c7
Author: Jack <41...@users.noreply.github.com>
AuthorDate: Mon Mar 4 10:34:31 2024 -0600

    fix(Alerts & Reports): Fixing bug that resets cron value to default when empty   (#27262)
---
 superset-frontend/src/features/alerts/AlertReportModal.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx b/superset-frontend/src/features/alerts/AlertReportModal.tsx
index c9123869f2..bc6908cac2 100644
--- a/superset-frontend/src/features/alerts/AlertReportModal.tsx
+++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx
@@ -1581,7 +1581,7 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
           key="schedule"
         >
           <AlertReportCronScheduler
-            value={currentAlert?.crontab || ALERT_REPORTS_DEFAULT_CRON_VALUE}
+            value={currentAlert?.crontab || ''}
             onChange={newVal => updateAlertState('crontab', newVal)}
           />
           <StyledInputContainer>