fix home starred entities display
Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user