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:38:00 UTC

(superset) 28/28: 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 4.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 19efb146b24e814a9d20774abc08a3a1c61e9358
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)
    
    (cherry picked from commit 32179f1a85a3779a03224fbaa061a123e34e52c7)
---
 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>