From 7e3cf97281727a5c79aa35787b05fe4f43162ca3 Mon Sep 17 00:00:00 2001 From: Giovanni Schroevers Date: Wed, 2 Aug 2023 11:54:07 +0200 Subject: [PATCH] feat: add slash between crumbs if there is more than one --- .../components/CategorySearchResult/CategorySearchResult.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/magento-search/components/CategorySearchResult/CategorySearchResult.tsx b/packages/magento-search/components/CategorySearchResult/CategorySearchResult.tsx index 95e7ce4cf0..6e4d51dc0d 100644 --- a/packages/magento-search/components/CategorySearchResult/CategorySearchResult.tsx +++ b/packages/magento-search/components/CategorySearchResult/CategorySearchResult.tsx @@ -45,13 +45,14 @@ export function CategorySearchResult(props: CategorySearchResultProps) { ]} >
- {catProps?.breadcrumbs?.map((breadcrumb) => ( + {catProps?.breadcrumbs?.map((breadcrumb, key) => ( + {(catProps.breadcrumbs?.length ?? 0) > key + 1 && ' / '} ))}