diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-13 11:04:52 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-13 11:12:37 +0700 |
| commit | 8bb683d2c695f0df292f6a7965efcbf3abd72a3d (patch) | |
| tree | d16e66c49ecf140ba8f2c446399687342c8f399e /src/lib/category/components | |
| parent | ff972e0c46c81a38cddac2368000d3fc92756235 (diff) | |
Add lazy load on stock product
Diffstat (limited to 'src/lib/category/components')
| -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, |
