Merge pull request #13277 from backstage/blam/owner-picker
scaffolder: Fix empty string handling in `EntityPicker`
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