mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
fix(web): default album view (#8247)
* fix(web): default album view * linting
This commit is contained in:
parent
5dc59b591d
commit
3901b5da44
1 changed files with 10 additions and 0 deletions
|
@ -155,6 +155,16 @@
|
||||||
albums = key.sortFn(key.sortDesc, sharedAlbums);
|
albums = key.sortFn(key.sortDesc, sharedAlbums);
|
||||||
break;
|
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;
|
$albumViewSettings.sortDesc = key.sortDesc;
|
||||||
|
|
Loading…
Reference in a new issue