diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 14:35:55 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 14:35:55 +0700 |
| commit | 8dd5502ca3ed4f2d74f74ea396b9424bd1390e5e (patch) | |
| tree | f39a67d705e99e4ccada3a0f71cfa5f72f439431 /src/lib | |
| parent | ea7e2cf8f768c3d3202c282182de6355b3ee32ee (diff) | |
<iman> uptade code to avoid error
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/category/components/PopularBrand.jsx | 2 |
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..09c0f8a1 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) => { |
