File tree Expand file tree Collapse file tree
web/src/lib/managers/timeline-manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,14 +419,22 @@ export class TimelineManager {
419419 if ( ! this . isInitialized ) {
420420 await this . initTask . waitUntilCompletion ( ) ;
421421 }
422+
422423 let { monthGroup } = findMonthGroupForAssetUtil ( this , id ) ?? { } ;
423424 if ( monthGroup ) {
424425 return monthGroup ;
425426 }
426- const asset = toTimelineAsset ( await getAssetInfo ( { ...authManager . params , id } ) ) ;
427+
428+ const response = await getAssetInfo ( { ...authManager . params , id } ) . catch ( ( ) => null ) ;
429+ if ( ! response ) {
430+ return ;
431+ }
432+
433+ const asset = toTimelineAsset ( response ) ;
427434 if ( ! asset || this . isExcluded ( asset ) ) {
428435 return ;
429436 }
437+
430438 monthGroup = await this . #loadMonthGroupAtTime( asset . localDateTime , { cancelable : false } ) ;
431439 if ( monthGroup ?. findAssetById ( { id } ) ) {
432440 return monthGroup ;
You can’t perform that action at this time.
0 commit comments