From c64c03928949547df6057c3f17663dcfd4bdd108 Mon Sep 17 00:00:00 2001 From: Prasetya Aria Wibawa Date: Fri, 20 Aug 2021 12:10:22 +0700 Subject: [PATCH] remove name from EntityTypeProps attribute Signed-off-by: Prasetya Aria Wibawa --- .../org/src/components/Cards/OwnershipCard/OwnershipCard.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx index 3cc86200ee..83768f1513 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx @@ -43,7 +43,6 @@ import { import { useApi, useRouteRef } from '@backstage/core-plugin-api'; type EntityTypeProps = { - name: string; kind: string; type: string; count: number; @@ -173,12 +172,10 @@ export const OwnershipCard = ({ const match = acc.find( x => x.kind === ownedEntity.kind && x.type === ownedEntity.spec?.type, ); - const name = ownedEntity.metadata.name; if (match) { match.count += 1; } else { acc.push({ - name, kind: ownedEntity.kind, type: ownedEntity.spec?.type, count: 1,