mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
yesnofilter null when not provided
This commit is contained in:
parent
286441c1b1
commit
cd18e683bf
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ export const YesNoSelect = ({ onChange, value, ...props }: YesNoSelectProps) =>
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
onChange(e ? e === 'true' : undefined);
|
onChange(e ? e === 'true' : undefined);
|
||||||
}}
|
}}
|
||||||
value={value !== undefined ? value.toString() : undefined}
|
value={value !== undefined ? value.toString() : null}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue