Update Tabs.jsx

This commit is contained in:
Pratik Agrawal 2024-11-26 16:26:26 +05:30 committed by GitHub
parent fe90d249f2
commit 57da84b02d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,