Merge pull request #26866 from zcmander/zcmander/human-readable-entity-picker

fix(scaffolder): use entity title for selected entity in EntityPicker…
This commit is contained in:
Johan Haals
2024-09-30 09:28:19 +02:00
committed by GitHub
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}