Skip to content

Commit

Permalink
fix(AlertReports): clearing custom_width when disabled (apache#27551)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0f6e404)
  • Loading branch information
fisjac authored and sadpandajoe committed Mar 26, 2024
1 parent 25423d5 commit ddb01d6
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 ddb01d6

Please sign in to comment.