From ffe6d3c49b0970da17ffaa65eb8f2efbd57735d2 Mon Sep 17 00:00:00 2001 From: Om Gupta Date: Mon, 14 Oct 2024 20:42:58 +0530 Subject: [PATCH] breadcrumb issue fixed --- blocks/breadcrumb/breadcrumb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/breadcrumb/breadcrumb.js b/blocks/breadcrumb/breadcrumb.js index df3465490a..ceb1401996 100644 --- a/blocks/breadcrumb/breadcrumb.js +++ b/blocks/breadcrumb/breadcrumb.js @@ -73,7 +73,7 @@ export default async function decorate(block) { 'aria-label': 'Breadcrumb', }); - if (multiText && multiUrl) { + if (multiText.innerText?.trim() && multiUrl.innerText?.trim()) { const breadcrumbsText = []; const multiUrls = multiUrl.innerText.trim().replace(/~/g, '/').split(','); multiText.innerText.trim().split(',').forEach((text, index) => {