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