fix home starred entities display

Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
Stephen Glass
2025-02-10 13:02:31 -05:00
parent 44330f0532
commit 2d11521f8c
2 changed files with 13 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home': patch
---
The starred entities component uses the entity title or display name if it exists
@@ -73,7 +73,14 @@ export const Content = ({
return (
await catalogApi.getEntitiesByRefs({
entityRefs: [...starredEntities],
fields: ['kind', 'metadata.namespace', 'metadata.name', 'spec.type'],
fields: [
'kind',
'metadata.namespace',
'metadata.name',
'spec.type',
'metadata.title',
'spec.profile.displayName',
],
})
).items.filter((e): e is Entity => !!e);
}, [catalogApi, starredEntities]);