mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-02 15:10:37 +01:00
Fix subscription tab hiding not working on launch (#5925)
This commit is contained in:
parent
b9adcb3d89
commit
4ebd37396b
@ -96,7 +96,11 @@ export default defineComponent({
|
||||
} else {
|
||||
// Restore currentTab
|
||||
const lastCurrentTabId = sessionStorage.getItem('Subscriptions/currentTab')
|
||||
if (lastCurrentTabId !== null) { this.changeTab(lastCurrentTabId) }
|
||||
if (lastCurrentTabId !== null) {
|
||||
this.changeTab(lastCurrentTabId)
|
||||
} else if (!this.visibleTabs.includes(this.currentTab)) {
|
||||
this.currentTab = this.visibleTabs[0]
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user