Skip to content

Commit

Permalink
Only reload filters when tab items change
Browse files Browse the repository at this point in the history
  • Loading branch information
wargcm committed May 9, 2024
1 parent 0bafe68 commit b8eccb4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ import Combine
guard let self else {
return
}
self.tabItems = self.tabItemsStore.items
self.reloadStreamFilters()
if self.tabItems != self.tabItemsStore.items {
self.tabItems = self.tabItemsStore.items
self.reloadStreamFilters()
}

// reset if the selectedIndex is out of bounds to avoid showing a blank screen.
if self.selectedIndex >= self.tabItems.count {
Expand Down

0 comments on commit b8eccb4

Please sign in to comment.