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,