Skip to content

Commit

Permalink
fix(AlertReports): clearing custom_width when disabled (#27551)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0f6e404)
  • Loading branch information
fisjac authored and michael-s-molina committed Mar 26, 2024
1 parent 06195b5 commit bc603db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset-frontend/src/features/alerts/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc603db

Please sign in to comment.