mirror of
https://github.com/apache/superset.git
synced 2024-09-17 19:19:38 -04:00
fix(AlertReports): clearing custom_width when disabled (#27551)
(cherry picked from commit 0f6e4041c7
)
This commit is contained in:
parent
7c14968e6d
commit
3bfa8a9cbc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user