From 57da84b02d414ded5cd4252ad6a4bed8ecec9337 Mon Sep 17 00:00:00 2001 From: Pratik Agrawal Date: Tue, 26 Nov 2024 16:26:26 +0530 Subject: [PATCH] Update Tabs.jsx --- frontend/src/Editor/Components/Tabs.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Editor/Components/Tabs.jsx b/frontend/src/Editor/Components/Tabs.jsx index 49cd179c9e..c65deab6c8 100644 --- a/frontend/src/Editor/Components/Tabs.jsx +++ b/frontend/src/Editor/Components/Tabs.jsx @@ -95,11 +95,11 @@ export const Tabs = function Tabs({ useEffect(() => { const exposedVariables = { setTab: async function (id) { - if (id !== undefined) { - const tabId = Number(id); + if (id !== undefined) { + const tabId = Number(id); setCurrentTab(tabId); setExposedVariable('currentTab', tabId); - fireEvent('onTabSwitch'); + fireEvent('onTabSwitch') } }, currentTab: currentTab,