From 1dab504713ee0e76ce6a41ec0a5fc0439444672b Mon Sep 17 00:00:00 2001 From: Prasetya Aria Wibawa Date: Fri, 20 Aug 2021 12:00:05 +0700 Subject: [PATCH] rename topEntity to be topOwnedEntity Signed-off-by: Prasetya Aria Wibawa --- .../components/Cards/OwnershipCard/OwnershipCard.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx index 57b4c58784..3cc86200ee 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx @@ -192,11 +192,11 @@ export const OwnershipCard = ({ // Return top N (six) entities to be displayed in ownership boxes const topN = counts.sort((a, b) => b.count - a.count).slice(0, 6); - return topN.map(topEntity => ({ - counter: topEntity.count, - type: topEntity.type, - name: topEntity.type.toLocaleUpperCase('en-US'), - queryParams: getQueryParams(entity, topEntity), + return topN.map(topOwnedEntity => ({ + counter: topOwnedEntity.count, + type: topOwnedEntity.type, + name: topOwnedEntity.type.toLocaleUpperCase('en-US'), + queryParams: getQueryParams(entity, topOwnedEntity), })) as Array<{ counter: number; type: string;