Commit 90a30a86 by t0ng7u

🐛 fix(model-pricing/header): pass sidebarProps to PricingFilterModal to prevent…

🐛 fix(model-pricing/header): pass sidebarProps to PricingFilterModal to prevent FilterModalContent crash

- 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
parent 313bbc1c
...@@ -28,6 +28,7 @@ const PricingTopSection = ({ ...@@ -28,6 +28,7 @@ const PricingTopSection = ({
handleCompositionStart, handleCompositionStart,
handleCompositionEnd, handleCompositionEnd,
isMobile, isMobile,
sidebarProps,
filterVendor, filterVendor,
models, models,
filteredModels, filteredModels,
...@@ -61,6 +62,7 @@ const PricingTopSection = ({ ...@@ -61,6 +62,7 @@ const PricingTopSection = ({
<PricingFilterModal <PricingFilterModal
visible={showFilterModal} visible={showFilterModal}
onClose={() => setShowFilterModal(false)} onClose={() => setShowFilterModal(false)}
sidebarProps={sidebarProps}
t={t} t={t}
/> />
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment