From bb6a3bc387b94ec1cf70241f989eb11444cc87dd Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Thu, 5 Sep 2024 23:07:19 +0800 Subject: [PATCH] fix 2.x issue (#8021) Signed-off-by: Hailong Cui --- 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); }