From 6f5710a3fc57c5d3339795a0f13897c14402d778 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 3 Feb 2026 13:50:42 +0530 Subject: [PATCH] price change render fixed 2 --- .../Components/UtillComponents/ProductPriceChange.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx b/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx index d55a9eb..2e20526 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx @@ -227,11 +227,11 @@ const ProductPriceChange = ({ console.log(cardData, 'noSubcatCardDatanoSubcatCardData', ItemCard); useEffect(() => { - + if (priceChangeModal || productPriceChange) { const extractStockDtls = (data) => { if (data?.length === 0 || !data) return []; - let stockDtls = [];git + let stockDtls = []; data?.forEach((item) => { let products = item?.ProductDetail?.flatMap((product) => product); @@ -266,7 +266,8 @@ const ProductPriceChange = ({ }; setTableData(extractStockDtls(priceChangeProduct || cardData || [])); setCurrentPage(1); - }, [cardData, priceChangeProduct]); + } + }, [cardData, priceChangeProduct, priceChangeModal, productPriceChange]); const handleNewMRPChange = (value, index) => { const updatedTableData = [...tableData];