Skip to content

Commit

Permalink
fix(AlertReports): clearing custom_width when disabled (#27551)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisjac authored Mar 22, 2024
1 parent 30b497e commit 0f6e404
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 @@ -611,6 +611,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 0f6e404

Please sign in to comment.