mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
fix: back/forward navigation won't reset scroll in timeline (#22838)
* fix: back/forward navigation won't reset scroll in timeline Fixes a bug where navigating to/from the asser-viewer from timeline causes the scroll position to be reset. * Fix back after assetviewer next/prev navigation * Bug fix from review * review comments
This commit is contained in:
@@ -107,7 +107,7 @@ export class StorageRepository {
|
||||
const file = await fs.open(filepath);
|
||||
try {
|
||||
const { buffer } = await file.read(options);
|
||||
return buffer;
|
||||
return buffer as Buffer;
|
||||
} finally {
|
||||
await file.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user