From 3ce85149313383bfc064237748e5a80d6e16180d Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 31 Mar 2023 11:10:27 +0700
Subject: change solr and mapping data

---
 src/lib/product/components/ProductSearch.jsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 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 b00d68a4..77c75e05 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -26,14 +26,14 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => {
   )
   const productStart = productSearch.data?.responseHeader.params.start
   const productRows = productSearch.data?.responseHeader.params.rows
-  const productFound = productSearch.data?.response.numFound
-
-  const brands = productSearch.data?.facetCounts?.facetFields?.brandStr?.filter((value, index) => {
+  const productFound = productSearch.data?.response.numFound 
+  
+  const brands = productSearch.data?.facetCounts?.facetFields?.manufactureNameS?.filter((value, index) => {
     if (index % 2 === 0) {
       return true
     }
   })
-  const categories = productSearch.data?.facetCounts?.facetFields?.categoryNameStr?.filter(
+  const categories = productSearch.data?.facetCounts?.facetFields?.categoryNameS?.filter(
     (value, index) => {
       if (index % 2 === 0) {
         return true
-- 
cgit v1.2.3

