mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Update Tabs.jsx
This commit is contained in:
parent
fe90d249f2
commit
57da84b02d
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue