mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix(web): don't reset memory viewer to first asset on delete
This commit is contained in:
parent
3dda811bf6
commit
55860369b9
1 changed files with 0 additions and 4 deletions
|
|
@ -185,9 +185,6 @@
|
|||
if (!current) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Capture where to land next *before* deleting, since the asset being
|
||||
// removed will no longer resolve via getMemoryAsset() afterwards.
|
||||
const nextTarget = current.next?.asset ?? current.previous?.asset;
|
||||
|
||||
await memoryManager.deleteAssetFromMemory(current.asset.id);
|
||||
|
|
@ -195,7 +192,6 @@
|
|||
if (nextTarget) {
|
||||
await handleNavigate(nextTarget);
|
||||
} else {
|
||||
// No assets left to navigate to (memory was fully emptied and removed).
|
||||
init(page);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue