yesnofilter null when not provided

This commit is contained in:
Kendall Garner 2025-06-29 22:34:39 -07:00
parent 286441c1b1
commit cd18e683bf
No known key found for this signature in database
GPG key ID: 9355F387FE765C94

View file

@ -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}
/>
);