is able to be set as required

Signed-off-by: Jeeva Ramanathan <jeevaramanathan.m@infosys.com>
This commit is contained in:
Jeeva Ramanathan
2024-05-03 17:50:30 +05:30
parent 9910c6babc
commit 762141c019
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': minor
---
`MultiEntityPicker` is able to be set as required
@@ -173,7 +173,10 @@ export const MultiEntityPicker = (props: MultiEntityPickerProps) => {
FormHelperTextProps={{ margin: 'dense', style: { marginLeft: 0 } }}
variant="outlined"
required={required}
InputProps={params.InputProps}
InputProps={{
...params.InputProps,
required: formData.length === 0 && required,
}}
/>
)}
/>