From 9aa5eae398f040e413f1224d2b3e6e2f99ea778d Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Thu, 18 Nov 2021 19:47:58 +0530 Subject: [PATCH] Fix: If tier tag is not present show other tags. (#1254) --- .../src/components/common/table-data-card/TableDataCard.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/catalog-rest-service/src/main/resources/ui/src/components/common/table-data-card/TableDataCard.tsx b/catalog-rest-service/src/main/resources/ui/src/components/common/table-data-card/TableDataCard.tsx index aacc4fb8053..fdadb467734 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/common/table-data-card/TableDataCard.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/common/table-data-card/TableDataCard.tsx @@ -70,11 +70,9 @@ const TableDataCard: FunctionComponent = ({ ]; const getAssetTags = () => { - const assetTags = [ - ...(tags as Array).filter((tag) => !tag.includes(tier)), - ]; + const assetTags = [...(tags as Array)]; if (tier) { - assetTags.unshift(tier); + assetTags.filter((tag) => !tag.includes(tier)).unshift(tier); } return [...new Set(assetTags)];