diff --git a/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx b/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx index a25c11d..0e09900 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/ProductPriceChange.jsx @@ -45,7 +45,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod // console.log(noSubcatCardData, "noSubcatCardData") useEffect(() => { - if (ProdCat && (ItemCard || withoutSubCatItemCard) && (!noSubcatCardData || noSubcatCardData?.length === 0)) { + if (ProdCat && (ItemCard || withoutSubCatItemCard)) { setNoSubcatCardData(ItemCard?.length === 0 ? withoutSubCatItemCard : ItemCard); } }, [ProdCat, ItemCard, withoutSubCatItemCard, noSubcatCardData]); @@ -206,7 +206,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod : ItemCard : ''; - console.log(cardData, "noSubcatCardDatanoSubcatCardData", ItemCard) + console.log(cardData, "cardData1", ItemCard, SelectedDatas, noSubcatCardData) useEffect(() => { const extractStockDtls = (data) => { @@ -454,6 +454,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod setPriceChangedProducts([]); formRef?.current?.resetFields(); setPriceChangeProduct(null); + setCurrentPage(1); }} handleSubmit={handleSubmit} >