Skip to content

Commit

Permalink
Removing extraneous code from gnav since utils modifies breadcrumb fu…
Browse files Browse the repository at this point in the history
…nctionality
  • Loading branch information
JasonHowellSlavin committed Jun 5, 2024
1 parent faada41 commit b3e62ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,6 @@ class Gnav {
};

decorateBreadcrumbs = async () => {
if (getMetadata('dynamic-nav') === 'on' && window.sessionStorage.getItem('gnavSource') !== null) {
return null;
}
if (!this.block.classList.contains('has-breadcrumbs')) return null;
if (this.elements.breadcrumbsWrapper) return this.elements.breadcrumbsWrapper;
const breadcrumbsElem = this.block.querySelector('.breadcrumbs');
Expand Down

0 comments on commit b3e62ee

Please sign in to comment.