From fddf33c5edf0df89c7d17aa70baeb7e9fc69f5d1 Mon Sep 17 00:00:00 2001 From: Jack <41238731+fisjac@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:49:18 -0500 Subject: [PATCH] fix(AlertReports): clearing custom_width when disabled (#27551) (cherry picked from commit 0f6e4041c73bcae931bac0a9daa1837beac5aaf6) --- superset-frontend/src/features/alerts/AlertReportModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx b/superset-frontend/src/features/alerts/AlertReportModal.tsx index cdc296d3d4f3a..c24c49f33655b 100644 --- a/superset-frontend/src/features/alerts/AlertReportModal.tsx +++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx @@ -611,6 +611,7 @@ const AlertReportModal: FunctionComponent = ({ chart: contentType === 'chart' ? currentAlert?.chart?.value : null, dashboard: contentType === 'dashboard' ? currentAlert?.dashboard?.value : null, + custom_width: isScreenshot ? currentAlert?.custom_width : undefined, database: currentAlert?.database?.value, owners: (currentAlert?.owners || []).map( owner => (owner as MetaObject).value || owner.id,