mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
yesnofilter null when not provided
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user