Skip to content

Commit

Permalink
missing semi
Browse files Browse the repository at this point in the history
  • Loading branch information
webjsavella committed Dec 17, 2024
1 parent c518363 commit db728ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eds/blocks/local-navigation/local-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function getBreadcrumb() {
if (!document.querySelector('script#breadcrumbs')) return;
const scriptTag = document.querySelector('script#breadcrumbs');
const jsonData = JSON.parse(scriptTag.textContent || scriptTag.innerText);
return jsonData.itemListElement[jsonData.itemListElement.length-1]
return jsonData.itemListElement[jsonData.itemListElement.length - 1];

Check failure on line 268 in eds/blocks/local-navigation/local-navigation.js

View workflow job for this annotation

GitHub Actions / build

Function 'getBreadcrumb' expected no return value
}

function fetchNavData(block) {
Expand All @@ -285,9 +285,7 @@ function fetchNavData(block) {
ctaEventListener(block);
resetDropdown(block);
})
.catch((error) => {
console.error('Error:', error);
});
.catch((error) => error);
}

/**
Expand Down

0 comments on commit db728ef

Please sign in to comment.