summaryrefslogtreecommitdiff
path: root/src/lib/category/components/PopularBrand.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-12 17:09:13 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-12 17:09:13 +0700
commit4dc62bbe5262be23b2622853973e803f63214a60 (patch)
tree6883347e889b9149c5f1c5d2b40c85aa2d4e0642 /src/lib/category/components/PopularBrand.jsx
parent54fca7062ee0963d6ea6a22a82fba7fa3fa516e5 (diff)
<iman> update category management
Diffstat (limited to 'src/lib/category/components/PopularBrand.jsx')
-rw-r--r--src/lib/category/components/PopularBrand.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/category/components/PopularBrand.jsx b/src/lib/category/components/PopularBrand.jsx
index dca731e8..7c297d39 100644
--- a/src/lib/category/components/PopularBrand.jsx
+++ b/src/lib/category/components/PopularBrand.jsx
@@ -17,7 +17,7 @@ const PopularBrand = ({ category }) => {
const fetchTopBrands = async () => {
try {
- const items = await fetchPromoItemsSolr(`category_id_ids:(${category.categoryDataIds.join(' OR ')})`);
+ const items = await fetchPromoItemsSolr(`category_id_ids:(${category?.categoryDataIds.join(' OR ')})`);
// console.log("id",items)
// Fungsi untuk deduplikasi dan mengambil 12 nama brand teratas
const getTop12UniqueBrands = (prod) => {