From 80de45ef8ca7de951e7ecd60d79378a8494056b6 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 00:26:09 +0800 Subject: [PATCH] fix 2.x issue (#8021) (#8022) (cherry picked from commit bb6a3bc387b94ec1cf70241f989eb11444cc87dd) Signed-off-by: Hailong Cui Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- src/core/public/chrome/ui/header/header_breadcrumbs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/public/chrome/ui/header/header_breadcrumbs.tsx b/src/core/public/chrome/ui/header/header_breadcrumbs.tsx index 35ef40f0209f..ca0f3610641d 100644 --- a/src/core/public/chrome/ui/header/header_breadcrumbs.tsx +++ b/src/core/public/chrome/ui/header/header_breadcrumbs.tsx @@ -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); }