fix: Expected number, received null

This commit is contained in:
vchikalkin 2023-06-07 09:48:34 +03:00
parent 4fd5c3602e
commit 654865e845

View File

@ -48,8 +48,8 @@ export function buildNumberValue<T>(
return (
<Form.Item help={help} validateStatus={validateStatus}>
<Component
onChange={(v = 0) => {
setValue(v);
onChange={(inputValue: number | null) => {
setValue(inputValue || 0);
}}
disabled={status === 'Disabled'}
value={value}