Skip to content

Commit

Permalink
fix 2.x issue (#8021) (#8022)
Browse files Browse the repository at this point in the history
(cherry picked from commit bb6a3bc)

Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 16d160a commit 80de45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/public/chrome/ui/header/header_breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function HeaderBreadcrumbs({
crumbs = breadcrumbEnricher(crumbs);
}

if (dropHomeFromBreadcrumb && crumbs.length && Object.hasOwn(crumbs[0], 'home')) {
if (dropHomeFromBreadcrumb && crumbs.length && crumbs[0].hasOwnProperty('home')) {
crumbs = crumbs.slice(1);
}

Expand Down

0 comments on commit 80de45e

Please sign in to comment.