From ffa898c52d1c2a061f1e0edf7b74e973a39e7bcb Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Sun, 10 Aug 2025 13:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(PricingCardView):=20hide=20p?= =?UTF-8?q?laceholder=20dash=20when=20no=20custom=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the card view displayed a “-” whenever a model had no custom tags, because `renderLimitedItems` returned a dash for an empty array. Now the function is only invoked when `customTags.length > 0`, removing the unwanted placeholder and keeping the UI clean. File affected: - web/src/components/table/model-pricing/view/card/PricingCardView.jsx --- .../table/model-pricing/view/card/PricingCardView.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/table/model-pricing/view/card/PricingCardView.jsx b/web/src/components/table/model-pricing/view/card/PricingCardView.jsx index a849dbaa..1be1b9fb 100644 --- a/web/src/components/table/model-pricing/view/card/PricingCardView.jsx +++ b/web/src/components/table/model-pricing/view/card/PricingCardView.jsx @@ -171,7 +171,7 @@ const PricingCardView = ({ {billingTag}
- {renderLimitedItems({ + {customTags.length > 0 && renderLimitedItems({ items: customTags.map((tag, idx) => ({ key: `custom-${idx}`, element: tag })), renderItem: (item, idx) => item.element, maxDisplay: 3