From b7981123ec6feb978d58a94995d0e5b8bbce50b8 Mon Sep 17 00:00:00 2001 From: Prasetya Aria Wibawa Date: Fri, 20 Aug 2021 10:50:30 +0700 Subject: [PATCH] use destructuring for selectedEntityType object Signed-off-by: Prasetya Aria Wibawa --- .../org/src/components/Cards/OwnershipCard/OwnershipCard.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx index 00e20bb709..7f14378632 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx @@ -125,8 +125,7 @@ const getQueryParams = ( selectedEntity: EntityTypeProps, ): string => { const ownerName = owner.metadata.name; - const kind = selectedEntity.kind; - const type = selectedEntity.type; + const { kind, type } = selectedEntity; const queryParams = qs.stringify({ filters: { kind,