From 97c52a699160989374db5ebffb9a8289a0e9d83a Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Sat, 23 Aug 2025 21:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(model-pricing/header):=20pas?= =?UTF-8?q?s=20sidebarProps=20to=20PricingFilterModal=20to=20prevent=20Fil?= =?UTF-8?q?terModalContent=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Re-introduce and forward `sidebarProps` from PricingTopSection to PricingFilterModal - Fix TypeError: “Cannot destructure property 'showWithRecharge' of 'sidebarProps' as it is undefined” - Keep modal state managed at top section; no other behavioral changes - Lint passes Files touched: - web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx --- .../table/model-pricing/layout/header/PricingTopSection.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx b/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx index 0db0551d..76bbac47 100644 --- a/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx +++ b/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx @@ -28,6 +28,7 @@ const PricingTopSection = ({ handleCompositionStart, handleCompositionEnd, isMobile, + sidebarProps, filterVendor, models, filteredModels, @@ -61,6 +62,7 @@ const PricingTopSection = ({ setShowFilterModal(false)} + sidebarProps={sidebarProps} t={t} /> )}