fix(AlertReports): clearing custom_width when disabled (#27551)

(cherry picked from commit 0f6e4041c7)
This commit is contained in:
Jack 2024-03-22 13:49:18 -05:00 committed by Michael S. Molina
parent 7c14968e6d
commit 3bfa8a9cbc

View File

@ -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,