diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx b/superset-frontend/src/features/alerts/AlertReportModal.tsx index bc6908cac..c297da2d7 100644 --- a/superset-frontend/src/features/alerts/AlertReportModal.tsx +++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx @@ -36,7 +36,7 @@ import { import rison from 'rison'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; -import { Input } from 'src/components/Input'; +import { InputNumber } from 'src/components/Input'; import { Switch } from 'src/components/Switch'; import Modal from 'src/components/Modal'; import Collapse from 'src/components/Collapse'; @@ -873,6 +873,10 @@ const AlertReportModal: FunctionComponent = ({ updateAlertState(name, parsedValue); }; + const onCustomWidthChange = (value: number | null | undefined) => { + updateAlertState('custom_width', value); + }; + const onTimeoutVerifyChange = ( event: React.ChangeEvent, ) => { @@ -1542,12 +1546,14 @@ const AlertReportModal: FunctionComponent = ({ >
{t('Screenshot width')}
-