1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00

fix(web): default album view (#8247)

* fix(web): default album view

* linting
This commit is contained in:
Alex 2024-03-24 15:44:22 -05:00 committed by GitHub
parent 5dc59b591d
commit 3901b5da44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;