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

This commit is contained in:
Juan Roa 2025-11-13 11:30:24 -05:00 committed by GitHub
parent 07a39226c5
commit 8001dedcbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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