fix(scaffolder): use entity title for selected entity in EntityPicker field

Signed-off-by: zcmander <zcmander@gmail.com>
This commit is contained in:
zcmander
2024-09-26 16:02:56 +03:00
parent d94526c394
commit 7bfaf23de1
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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}