price change issue fix
This commit is contained in:
parent
39ea4b31f6
commit
38c3c30d4d
|
|
@ -45,7 +45,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod
|
||||||
// console.log(noSubcatCardData, "noSubcatCardData")
|
// console.log(noSubcatCardData, "noSubcatCardData")
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (ProdCat && (ItemCard || withoutSubCatItemCard) && (!noSubcatCardData || noSubcatCardData?.length === 0)) {
|
if (ProdCat && (ItemCard || withoutSubCatItemCard)) {
|
||||||
setNoSubcatCardData(ItemCard?.length === 0 ? withoutSubCatItemCard : ItemCard);
|
setNoSubcatCardData(ItemCard?.length === 0 ? withoutSubCatItemCard : ItemCard);
|
||||||
}
|
}
|
||||||
}, [ProdCat, ItemCard, withoutSubCatItemCard, noSubcatCardData]);
|
}, [ProdCat, ItemCard, withoutSubCatItemCard, noSubcatCardData]);
|
||||||
|
|
@ -206,7 +206,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod
|
||||||
: ItemCard
|
: ItemCard
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
console.log(cardData, "noSubcatCardDatanoSubcatCardData", ItemCard)
|
console.log(cardData, "cardData1", ItemCard, SelectedDatas, noSubcatCardData)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const extractStockDtls = (data) => {
|
const extractStockDtls = (data) => {
|
||||||
|
|
@ -454,6 +454,7 @@ const ProductPriceChange = ({ showButton = true, priceChangeProduct = null, prod
|
||||||
setPriceChangedProducts([]);
|
setPriceChangedProducts([]);
|
||||||
formRef?.current?.resetFields();
|
formRef?.current?.resetFields();
|
||||||
setPriceChangeProduct(null);
|
setPriceChangeProduct(null);
|
||||||
|
setCurrentPage(1);
|
||||||
}}
|
}}
|
||||||
handleSubmit={handleSubmit}
|
handleSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue