fix(web): keep album timeline when selecting cover (#23819)

pull/23876/head
Juan Roa 2025-11-13 11:30:24 +07:00 committed by GitHub
parent 07a39226c5
commit 8001dedcbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

@ -298,9 +298,6 @@
let timelineManager = $state<TimelineManager>() as TimelineManager;
const options = $derived.by(() => {
if (viewMode === AlbumPageViewMode.VIEW) {
return { albumId, order: albumOrder };
}
if (viewMode === AlbumPageViewMode.SELECT_ASSETS) {
return {
visibility: AssetVisibility.Timeline,
@ -308,7 +305,7 @@
timelineAlbumId: albumId,
};
}
return {};
return { albumId, order: albumOrder };
});
const isShared = $derived(viewMode === AlbumPageViewMode.SELECT_ASSETS ? false : album.albumUsers.length > 0);