Merge pull request #13277 from backstage/blam/owner-picker
scaffolder: Fix empty string handling in `EntityPicker`
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder': patch
|
||||
---
|
||||
|
||||
Fix bug with empty strings in `EntityPicker`
|
||||
@@ -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