diff --git a/web-src/src/pages/PageAlbums.vue b/web-src/src/pages/PageAlbums.vue index e887dda4..f104f0ae 100644 --- a/web-src/src/pages/PageAlbums.vue +++ b/web-src/src/pages/PageAlbums.vue @@ -65,7 +65,10 @@ export default { }, albums_filtered () { - return this.albums.items.filter(album => !this.hide_singles || album.track_count > 2) + if (this.hide_singles) { + return this.albums.items.filter(album => album.track_count > 2) + } + return this.albums.items } }, diff --git a/web-src/src/pages/PageArtists.vue b/web-src/src/pages/PageArtists.vue index 8e854c2c..7b959943 100644 --- a/web-src/src/pages/PageArtists.vue +++ b/web-src/src/pages/PageArtists.vue @@ -67,7 +67,10 @@ export default { }, artists_filtered () { - return this.artists.items.filter(artist => !this.hide_singles || artist.track_count > (artist.album_count * 2)) + if (this.hide_singles) { + return this.artists.items.filter(artist => artist.track_count > (artist.album_count * 2)) + } + return this.artists.items } },