From 689490692b35be4e2464cae9c822a652145b8e1c Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Thu, 18 Nov 2021 13:24:56 +0530 Subject: [PATCH] Fix : Getting redundant tier tags on recently viewed cards on my data page. (#1231) --- .../src/components/common/table-data-card/TableDataCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 383f4723e01..aacc4fb8053 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,7 +70,9 @@ const TableDataCard: FunctionComponent = ({ ]; const getAssetTags = () => { - const assetTags = [...(tags as Array)]; + const assetTags = [ + ...(tags as Array).filter((tag) => !tag.includes(tier)), + ]; if (tier) { assetTags.unshift(tier); }