From be6b97e2edef4f867cbc83bc4508316a4b029235 Mon Sep 17 00:00:00 2001 From: Prasetya Aria Wibawa Date: Fri, 4 Mar 2022 10:59:10 +0700 Subject: [PATCH] change to use getEntityByRef Signed-off-by: Prasetya Aria Wibawa --- .../Cards/OwnershipCard/useAggregatedEntities.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/useAggregatedEntities.ts b/plugins/org/src/components/Cards/OwnershipCard/useAggregatedEntities.ts index e8fb2d52dc..45595acb78 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/useAggregatedEntities.ts +++ b/plugins/org/src/components/Cards/OwnershipCard/useAggregatedEntities.ts @@ -91,12 +91,7 @@ export function useAggregatedEntities( await Promise.all( childRelations.map(childGroup => limiter(async () => { - const promise = catalogApi.getEntityByName({ - kind: 'Group', - namespace: 'default', - name: childGroup.name, - }); - + const promise = catalogApi.getEntityByRef(childGroup); outstandingEntities.set(childGroup.name, promise); try { const processedEntity = await promise;