diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-12 17:11:07 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-12 17:11:07 +0700 |
| commit | 3e11fce63de4b0d99a1e48c9998d6fcfcec13d98 (patch) | |
| tree | 230f43d59e24d85cb916900d4c8f555bc844c747 /src/lib/category/components/PopularBrand.jsx | |
| parent | 4dc62bbe5262be23b2622853973e803f63214a60 (diff) | |
<iman> update error code
Diffstat (limited to 'src/lib/category/components/PopularBrand.jsx')
| -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 7c297d39..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) => { |
