From ad285f36e7d4feaaca4243f2cc7bbfbf7da3a0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Erik=20Bergstr=C3=B6m?= Date: Tue, 22 Aug 2023 10:36:57 +0200 Subject: [PATCH] Update plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Carl-Erik Bergström --- .../org/src/components/Cards/OwnershipCard/useGetEntities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts b/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts index 74a9413e48..093deba5c5 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts +++ b/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts @@ -89,7 +89,7 @@ const getChildOwnershipEntityRefs = async ( if (hasChildGroups) { const entityRefs = childGroups.map( - ({ kind, namespace, name }) => `${kind}:${namespace}/${name}`, + r => stringifyEntityRef(r), ); const childGroupResponse = await catalogApi.getEntitiesByRefs({ fields: ['kind', 'metadata.namespace', 'metadata.name'],