chore: empty strings are still strings, so if it's not set default to undefined to throw the correct error

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-08-22 11:21:51 +02:00
parent bc41225ccf
commit a2217c28a1
@@ -72,7 +72,7 @@ export const EntityPicker = (
const onSelect = useCallback(
(_: any, value: string | null) => {
onChange(value || '');
onChange(value ?? undefined);
},
[onChange],
);