Skip to content

Commit 6a1092d

Browse files
committed
fix: use fallbackTabIndex prop instead of FALLBACK_TAB const in useTabs
1 parent 58afeea commit 6a1092d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/DynamicTabs/useTabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function useTabs(persistenceKey: string, fallbackTabIndex = FALLBACK_TAB)
215215
})
216216
}
217217
if (!_tabs.some((_tab) => _tab.isSelected)) {
218-
_tabs[FALLBACK_TAB].isSelected = true
218+
_tabs[fallbackTabIndex].isSelected = true
219219
}
220220

221221
_tabs.sort((a, b) => {

0 commit comments

Comments
 (0)