Merge pull request #13277 from backstage/blam/owner-picker

scaffolder: Fix empty string handling in `EntityPicker`
This commit is contained in:
Ben Lambert
2022-08-23 10:19:23 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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],
);