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:
@@ -72,7 +72,7 @@ export const EntityPicker = (
|
||||
|
||||
const onSelect = useCallback(
|
||||
(_: any, value: string | null) => {
|
||||
onChange(value || '');
|
||||
onChange(value ?? undefined);
|
||||
},
|
||||
[onChange],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user