From e5a01976cb665b824b2ad6426a2c52a5bd0964e6 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Sat, 27 Jul 2024 08:27:54 +0700
Subject: <iman> add feature category lob

---
 src/lib/product/components/ProductSearch.jsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/lib/product/components/ProductSearch.jsx')

diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx
index cd7cda9f..735ef58e 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -78,8 +78,9 @@ const ProductSearch = ({
       page: 1,
       brand : router.query.brand? router.query.brand : '',
     };
+    console.log("newQuery",newQuery)
     setFinalQuery(newQuery);
-  }, [dataCategoriesProduct]);
+  }, [dataCategoriesProduct, prefixUrl, prefixUrl, finalQuery, q, limit, orderBy]);
 
   useEffect(() => {
     if (prefixUrl.includes('category')) {
@@ -178,7 +179,7 @@ const ProductSearch = ({
     loadCategories()
   }, [])
 
-  
+  console.log("queryFinal", queryFinal)
 
 
   const brands = [];
-- 
cgit v1.2.3

