diff --git a/plugins/catalog/src/components/getEntityRelations.test.ts b/plugins/catalog/src/components/getEntityRelations.test.ts index 062c6b3064..5b997d646b 100644 --- a/plugins/catalog/src/components/getEntityRelations.test.ts +++ b/plugins/catalog/src/components/getEntityRelations.test.ts @@ -60,7 +60,7 @@ describe('getEntityRelations', () => { } as Entity; expect( - getEntityRelations(entity, RELATION_MEMBER_OF, { kind: 'group' }), + getEntityRelations(entity, RELATION_MEMBER_OF, { kind: 'Group' }), ).toEqual([{ kind: 'group', name: 'member' }]); }); }); diff --git a/plugins/catalog/src/components/getEntityRelations.ts b/plugins/catalog/src/components/getEntityRelations.ts index 5c5531f0dd..f9f526698f 100644 --- a/plugins/catalog/src/components/getEntityRelations.ts +++ b/plugins/catalog/src/components/getEntityRelations.ts @@ -31,7 +31,7 @@ export function getEntityRelations( if (filter?.kind) { entityNames = entityNames?.filter( - e => e.kind.toLowerCase() === filter.kind, + e => e.kind.toLowerCase() === filter.kind.toLowerCase(), ); }