Intermediate fix for CheckedState

I don't really know how to handle this lol
This commit is contained in:
Justin Edmund 2023-01-02 02:03:58 -08:00
parent b67845f4e7
commit dae06b9087

View file

@ -13,8 +13,12 @@ interface Props {
} }
const SearchFilterCheckboxItem = (props: Props) => { const SearchFilterCheckboxItem = (props: Props) => {
function handleCheckedChange(checked: boolean) { function handleCheckedChange(checked: string | boolean) {
props.onCheckedChange(checked, props.valueKey) if (typeof checked === 'boolean') {
props.onCheckedChange(checked, props.valueKey)
} else {
props.onCheckedChange(false, props.valueKey)
}
} }
return ( return (