From 64dc7ed8c6568e29fb9e22c34febc2695b8172ca Mon Sep 17 00:00:00 2001 From: Jan Vilimek Date: Mon, 13 Dec 2021 11:11:20 +0100 Subject: [PATCH] ownershipcard: prettier Signed-off-by: Jan Vilimek --- .../components/Cards/OwnershipCard/OwnershipCard.test.tsx | 2 +- .../src/components/Cards/OwnershipCard/OwnershipCard.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx index e5bf36ba8e..e49720a9d4 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx @@ -352,7 +352,7 @@ describe('OwnershipCardWithCustomFilterDefinition', () => { const { getByText } = await renderInTestApp( - + , { diff --git a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx index 56e87a26f6..1e2d514359 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.tsx @@ -128,7 +128,7 @@ const getQueryParams = ( export const OwnershipCard = ({ variant, - entityFilterKind + entityFilterKind, }: { /** @deprecated The entity is now grabbed from context instead */ entity?: Entity; @@ -165,7 +165,9 @@ export const OwnershipCard = ({ const counts = ownedEntitiesList.reduce( (acc: EntityTypeProps[], ownedEntity) => { const match = acc.find( - x => x.kind === ownedEntity.kind && x.type === (ownedEntity.spec?.type ?? ownedEntity.kind), + x => + x.kind === ownedEntity.kind && + x.type === (ownedEntity.spec?.type ?? ownedEntity.kind), ); if (match) { match.count += 1;