fix(scaffolder): use entity title for selected entity in EntityPicker field
Signed-off-by: zcmander <zcmander@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder': minor
|
||||
---
|
||||
|
||||
Text field content of the `EntityPicker` is now more readable as it uses entity title instead of entity reference.
|
||||
@@ -190,7 +190,7 @@ export const EntityPicker = (props: EntityPickerProps) => {
|
||||
typeof option === 'string'
|
||||
? option
|
||||
: entities?.entityRefToPresentation.get(stringifyEntityRef(option))
|
||||
?.entityRef!
|
||||
?.primaryTitle!
|
||||
}
|
||||
autoSelect
|
||||
freeSolo={allowArbitraryValues}
|
||||
|
||||
Reference in New Issue
Block a user