From 8c1ca06e1f728c0e8a5731025d81e8cea48c5342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Erik=20Bergstr=C3=B6m?= Date: Tue, 22 Aug 2023 10:07:08 +0200 Subject: [PATCH] chore: remove unnecessary destructuring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carl-Erik Bergström --- .../src/components/Cards/OwnershipCard/useGetEntities.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts b/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts index cf2b2a85c0..9404782f68 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts +++ b/plugins/org/src/components/Cards/OwnershipCard/useGetEntities.ts @@ -71,12 +71,7 @@ const getMemberOfEntityRefs = (owner: Entity): string[] => { }), ); - const { - kind, - metadata: { namespace, name }, - } = owner; - - return [...ownerGroupsNames, stringifyEntityRef({ kind, namespace, name })]; + return [...ownerGroupsNames, stringifyEntityRef(owner)]; }; const isEntity = (entity: Entity | undefined): entity is Entity =>