Skip to content

Commit c784d1a

Browse files
authored
Fix tracks not showing correctly on item select in Library tab (#263)
Fixes a bug where selecting a sidebar item in the Library tab would not show the corresponding tracks list in certain cases.
1 parent dccf371 commit c784d1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Views/Components/TrackViews/TrackTableView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ struct TrackTableView: View {
391391
return
392392
}
393393

394-
let initialTracks = (sortedTracks.count != tracks.count) ? tracks : sortedTracks
394+
let initialTracks = tracks
395395

396396
Task.detached(priority: .userInitiated) {
397397
let sorted = initialTracks.sorted(using: newSortOrder)

0 commit comments

Comments
 (0)