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:
kjuulh
2022-07-14 13:00:12 +02:00
parent 11a5ca35f3
commit 180c06d623
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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,
},
};