fix: Expected number, received null
This commit is contained in:
parent
4fd5c3602e
commit
654865e845
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user