diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-09-15 01:41:26 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-09-15 01:41:26 +0000 |
| commit | edb2eda7b2cc4115e3d9f90a4ff9721454b1c8a9 (patch) | |
| tree | c6c045bb69e7651e048542491aa57d8d6be5f2b5 /src/lib/category | |
| parent | 4adc8375819bc84e71cd956f262160f4d0079431 (diff) | |
| parent | cf8daf7dd3a66084dfafdde1d9bf9d0d94fe42a7 (diff) | |
Merged in CR/migrasi_product_detail_to_solr (pull request #65)
CR/migrasi product detail to solr
Diffstat (limited to 'src/lib/category')
| -rw-r--r-- | src/lib/category/components/Category.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/category/components/Category.jsx b/src/lib/category/components/Category.jsx index 884a871f..af696d42 100644 --- a/src/lib/category/components/Category.jsx +++ b/src/lib/category/components/Category.jsx @@ -10,7 +10,7 @@ const Category = () => { useEffect(() => { const loadCategories = async () => { let dataCategories = await odooApi('GET', '/api/v1/category/tree') - dataCategories = dataCategories.map((category) => { + dataCategories = dataCategories?.map((category) => { category.childs = category.childs.map((child1Category) => { return { ...child1Category, |
