Skip to content

High performance self-hosted photo and video management solution.

fix: timeline scroll error handling (#21324)

Jason Rasmussen76eaee3657c8
diff --git a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts
index 2e31fa9bc1..172cd07a02 100644
--- a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts
+++ b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts
@@ -419,14 +419,22 @@ export class TimelineManager {
if (!this.isInitialized) {
await this.initTask.waitUntilCompletion();
}
+
let { monthGroup } = findMonthGroupForAssetUtil(this, id) ?? {};
if (monthGroup) {
return monthGroup;
}
- const asset = toTimelineAsset(await getAssetInfo({ ...authManager.params, id }));
+
+ const response = await getAssetInfo({ ...authManager.params, id }).catch(() => null);
+ if (!response) {
+ return;
+ }
+
+ const asset = toTimelineAsset(response);
if (!asset || this.isExcluded(asset)) {
return;
}
+
monthGroup = await this.#loadMonthGroupAtTime(asset.localDateTime, { cancelable: false });
if (monthGroup?.findAssetById({ id })) {
return monthGroup;