mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
fix(query builder): default to no value for empty string
This commit is contained in:
@@ -213,7 +213,11 @@ const QueryValueInput = ({
|
|||||||
<NumberInput
|
<NumberInput
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
size="sm"
|
size="sm"
|
||||||
value={value !== undefined && value !== null ? Number(value) : undefined}
|
value={
|
||||||
|
value !== undefined && value !== null && value !== ''
|
||||||
|
? Number(value)
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user