[web] Fix hiding singles in artists and albums views

This commit is contained in:
chme 2022-03-20 15:22:31 +01:00
parent 8f934ec690
commit e5a87d0396
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ export default {
(o) => o.name === this.selected_groupby_option_name
)
this.albums_list.group(groupBy.options, [
(album) => !this.hide_singles || album.track_count <= 2,
(album) => !this.hide_singles || album.track_count > 2,
(album) => !this.hide_spotify || album.data_kind !== 'spotify'
])

View File

@ -142,7 +142,7 @@ export default {
)
this.artists_list.group(groupBy.options, [
(artist) =>
!this.hide_singles || artist.track_count <= artist.album_count * 2,
!this.hide_singles || artist.track_count > artist.album_count * 2,
(artist) => !this.hide_spotify || artist.data_kind !== 'spotify'
])