Skip to content

Commit

Permalink
PWA-3264:PDP breadcrumbs only show one level of product category
Browse files Browse the repository at this point in the history
  • Loading branch information
glo11372 committed Jun 7, 2024
1 parent cd0adbc commit 8da5a8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ const getBreadcrumbCategoryId = categories => {
const breadcrumbSet = new Set();
categories.forEach(({ breadcrumbs }) => {
// breadcrumbs can be `null`...
(breadcrumbs || []).forEach(({ category_id }) =>
breadcrumbSet.add(category_id)
(breadcrumbs || []).forEach(({ category_uid }) =>
breadcrumbSet.add(category_uid)
);
});

Expand Down

0 comments on commit 8da5a8d

Please sign in to comment.