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