diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-29 13:32:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-29 13:32:39 +0700 |
| commit | 556e7e226a2043d43bc55bf0ff2118294bb9f330 (patch) | |
| tree | 9251e44a438878829b4c051a573e0c568996c07a /src/lib/lob | |
| parent | f1910544cf6df50bcb175b66b604f5903f6ae3fa (diff) | |
<iman> update lob category
Diffstat (limited to 'src/lib/lob')
| -rw-r--r-- | src/lib/lob/components/Breadcrumb.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/lob/components/Breadcrumb.jsx b/src/lib/lob/components/Breadcrumb.jsx index 04d9a691..5722fd39 100644 --- a/src/lib/lob/components/Breadcrumb.jsx +++ b/src/lib/lob/components/Breadcrumb.jsx @@ -19,7 +19,7 @@ import { useQuery } from 'react-query' const Breadcrumb = ({ categoryId }) => { const breadcrumbs = useQuery( `lob-breadcrumbs/${categoryId}`, - async () => await odooApi('GET', `/api/v1/lob_homepage?lob_id=${categoryId}`) + async () => await odooApi('GET', `/api/v1/lob_homepage/${categoryId}/category_id`) ) return ( <div className='container mx-auto py-4 md:py-6'> @@ -31,7 +31,7 @@ const Breadcrumb = ({ categoryId }) => { </BreadcrumbLink> </BreadcrumbItem> - {breadcrumbs.data?.map((category, index) => ( + {breadcrumbs?.data?.map((category, index) => ( <BreadcrumbItem key={index} isCurrentPage={index === breadcrumbs.data.length - 1}> {index === breadcrumbs.data.length - 1 ? ( <BreadcrumbLink className='whitespace-nowrap'>{category.industries}</BreadcrumbLink> |
