Fix subscription tab hiding not working on launch (#5925)

This commit is contained in:
absidue 2024-10-24 14:53:30 +02:00 committed by GitHub
parent b9adcb3d89
commit 4ebd37396b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: {