Skip to content

Commit

Permalink
! Fix in sub view, restoring last tab is bugged when visible tabs do …
Browse files Browse the repository at this point in the history
…not include tab to be restored (#4064)
  • Loading branch information
PikachuEXE authored Sep 23, 2023
1 parent ed29725 commit 825aa4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/views/Subscriptions/Subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ export default defineComponent({
if (this.visibleTabs.includes(tab)) {
this.currentTab = tab
} else {
this.currentTab = null
// First visible tab or no tab
this.currentTab = this.visibleTabs.length > 0 ? this.visibleTabs[0] : null
}
},

Expand Down

0 comments on commit 825aa4e

Please sign in to comment.