summaryrefslogtreecommitdiff
path: root/src/lib/lob/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/lob/components')
-rw-r--r--src/lib/lob/components/Breadcrumb.jsx4
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>