Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Oct 14, 2024
2 parents 9554958 + 7eaf8ad commit 9aaff66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/breadcrumb/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 9aaff66

Please sign in to comment.