mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-03 07:31:44 +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 {
|
} else {
|
||||||
// Restore currentTab
|
// Restore currentTab
|
||||||
const lastCurrentTabId = sessionStorage.getItem('Subscriptions/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: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user