fix(web): preserve album scroll when adding to other albums (#27078)

This commit is contained in:
Michel Heusschen
2026-03-20 15:42:19 +01:00
committed by GitHub
parent b7c4497dfd
commit 9a0c17fdb8

View File

@@ -287,7 +287,11 @@
} }
}; };
const onAlbumAddAssets = async () => { const onAlbumAddAssets = async ({ albumIds }: { albumIds: string[] }) => {
if (!albumIds.includes(album.id)) {
return;
}
await refreshAlbum(); await refreshAlbum();
timelineInteraction.clearMultiselect(); timelineInteraction.clearMultiselect();
await setModeToView(); await setModeToView();