From db728efcb930f364ffe72f8b59bb7a55753c64af Mon Sep 17 00:00:00 2001 From: Joe-Savella Date: Tue, 17 Dec 2024 15:52:09 -0800 Subject: [PATCH] missing semi --- eds/blocks/local-navigation/local-navigation.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eds/blocks/local-navigation/local-navigation.js b/eds/blocks/local-navigation/local-navigation.js index 32145785..885e61b6 100644 --- a/eds/blocks/local-navigation/local-navigation.js +++ b/eds/blocks/local-navigation/local-navigation.js @@ -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]; } function fetchNavData(block) { @@ -285,9 +285,7 @@ function fetchNavData(block) { ctaEventListener(block); resetDropdown(block); }) - .catch((error) => { - console.error('Error:', error); - }); + .catch((error) => error); } /**