mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +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 ? e === 'true' : undefined);
|
||||
}}
|
||||
value={value !== undefined ? value.toString() : undefined}
|
||||
value={value !== undefined ? value.toString() : null}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user