From 3901b5da44b347242ceb964e9c2dc13c9d5912d6 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 24 Mar 2024 15:44:22 -0500 Subject: [PATCH] fix(web): default album view (#8247) * fix(web): default album view * linting --- web/src/lib/components/album-page/albums-list.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/src/lib/components/album-page/albums-list.svelte b/web/src/lib/components/album-page/albums-list.svelte index 92773ba6bc..1e308b463a 100644 --- a/web/src/lib/components/album-page/albums-list.svelte +++ b/web/src/lib/components/album-page/albums-list.svelte @@ -155,6 +155,16 @@ albums = key.sortFn(key.sortDesc, sharedAlbums); break; } + + default: { + albums = key.sortFn( + key.sortDesc, + [...sharedAlbums, ...ownedAlbums].filter( + (album, index, self) => index === self.findIndex((item) => album.id === item.id), + ), + ); + break; + } } $albumViewSettings.sortDesc = key.sortDesc;