Skip to content

Commit

Permalink
fix(web): default album view (#8247)
Browse files Browse the repository at this point in the history
* fix(web): default album view

* linting
  • Loading branch information
alextran1502 committed Mar 24, 2024
1 parent 5dc59b5 commit 3901b5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/src/lib/components/album-page/albums-list.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3901b5d

Please sign in to comment.