diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx b/superset-frontend/src/features/alerts/AlertReportModal.tsx index f836599ca4c..ebc85db78b6 100644 --- a/superset-frontend/src/features/alerts/AlertReportModal.tsx +++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx @@ -36,7 +36,7 @@ import rison from 'rison'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; import Icons from 'src/components/Icons'; -import { Input } from 'src/components/Input'; +import { Input, InputNumber } from 'src/components/Input'; import { Switch } from 'src/components/Switch'; import Modal from 'src/components/Modal'; import TimezoneSelector from 'src/components/TimezoneSelector'; @@ -890,6 +890,10 @@ const AlertReportModal: FunctionComponent = ({ updateAlertState(name, parsedValue); }; + const onCustomWidthChange = (value: number | null | undefined) => { + updateAlertState('custom_width', value); + }; + const onTimeoutVerifyChange = ( event: React.ChangeEvent, ) => { @@ -1504,14 +1508,16 @@ const AlertReportModal: FunctionComponent = ({ {TRANSLATIONS.CUSTOM_SCREENSHOT_WIDTH_TEXT}
-