From eeea78908c815f3b3ad50f1ace88d7318b50c5f8 Mon Sep 17 00:00:00 2001 From: Rajneesh Date: Thu, 9 Nov 2023 11:12:02 +0530 Subject: [PATCH] code opt2 --- blocks/tabs-horizontal/tabs-horizontal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({