diff --git a/blocks/tabs-horizontal/tabs-horizontal.js b/blocks/tabs-horizontal/tabs-horizontal.js index a54083c1a..c06dd372d 100644 --- a/blocks/tabs-horizontal/tabs-horizontal.js +++ b/blocks/tabs-horizontal/tabs-horizontal.js @@ -20,7 +20,7 @@ function redirectedNav() { const hashUrl = window.location.hash.split('#')[1]; setTimeout(() => { const tab = document.getElementById(hashUrl); - if (tab){ + if (tab) { const tabSection = tab.closest('.section'); tab.click(); window.scroll({