diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-17 14:57:48 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-17 14:57:48 +0700 |
| commit | 6bd88bdb765c1ecc0518abeca77eca25bde2857b (patch) | |
| tree | d78bdeff99a8634a15a7c7b0149a6f51a9408213 /src/lib/product/components/ProductSearch.jsx | |
| parent | 954be13467b02889414db600fee8e8b7b76cc2aa (diff) | |
add lebel product terjual di product card dan product detail, bugfix queri solr untuk filter brand
Diffstat (limited to 'src/lib/product/components/ProductSearch.jsx')
| -rw-r--r-- | src/lib/product/components/ProductSearch.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx index fd75d587..dc9796f2 100644 --- a/src/lib/product/components/ProductSearch.jsx +++ b/src/lib/product/components/ProductSearch.jsx @@ -70,11 +70,11 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => { const brands = [] for ( let i = 0; - i < productSearch.data?.facetCounts?.facetFields?.manufactureName.length; + i < productSearch.data?.facetCounts?.facetFields?.manufactureNameS.length; i += 2 ) { - const brand = productSearch.data?.facetCounts?.facetFields?.manufactureName[i] - const qty = productSearch.data?.facetCounts?.facetFields?.manufactureName[i + 1] + const brand = productSearch.data?.facetCounts?.facetFields?.manufactureNameS[i] + const qty = productSearch.data?.facetCounts?.facetFields?.manufactureNameS[i + 1] if (qty > 0) { brands.push({ brand, qty }) } |
