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/26 18:34:54 UTC
(superset) 01/04: fix(AlertReports): clearing custom_width when disabled (#27551)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/superset.git
commit bc603db7d4a7787d6bcd31668777860595281f94
Author: Jack <41...@users.noreply.github.com>
AuthorDate: Fri Mar 22 13:49:18 2024 -0500
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 ae4feda653..39261543f7 100644
--- a/superset-frontend/src/features/alerts/AlertReportModal.tsx
+++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx
@@ -628,6 +628,7 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
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,