diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-27 08:27:54 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-27 08:27:54 +0700 |
| commit | e5a01976cb665b824b2ad6426a2c52a5bd0964e6 (patch) | |
| tree | 2225b76f4824c5f9e80467dceedf257c46887297 /src/lib/home/components/CategoryDynamic.jsx | |
| parent | 4758a0989f2ec0d79e1c5e3a3d42c249f28a9e72 (diff) | |
<iman> add feature category lob
Diffstat (limited to 'src/lib/home/components/CategoryDynamic.jsx')
| -rw-r--r-- | src/lib/home/components/CategoryDynamic.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/home/components/CategoryDynamic.jsx b/src/lib/home/components/CategoryDynamic.jsx index bbba2ceb..6ab03ec3 100644 --- a/src/lib/home/components/CategoryDynamic.jsx +++ b/src/lib/home/components/CategoryDynamic.jsx @@ -21,7 +21,7 @@ const CategoryDynamic = () => { const countLevel1 = await odooApi('GET', `/api/v1/category/numFound?parent_id=${category.categoryIdI}`); // console.log("countLevel1.child",countLevel1) - updatedCategoryData[category.categoryIdI] = countLevel1.numFound; + updatedCategoryData[category.categoryIdI] = countLevel1?.numFound; // Calculate level 2 products for each sub-category |
