Change boolean pipe to a Optional chaining pipe
Change boolean pipe to a Optional chaining pipe Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/plugin-scaffolder': patch
|
||||
---
|
||||
|
||||
Add allowArbitraryValues for <OwnerPicker /> to provide input validation
|
||||
Add allowArbitraryValues for <OwnerPicker /> to provide input validation. This makes it a better experience of users, as they can now expect the values they enter to correspond to a valid owner. This is set to the default behavior by default.
|
||||
|
||||
@@ -52,7 +52,7 @@ export const OwnerPicker = (
|
||||
]) as string[],
|
||||
defaultKind: 'Group',
|
||||
allowArbitraryValues:
|
||||
uiSchema['ui:options']?.allowArbitraryValues || true,
|
||||
uiSchema['ui:options']?.allowArbitraryValues ?? true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user