From 4bbc3a4e68cf569157cc6ef2bbab834d8137da1a Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 20 Sep 2023 20:39:11 +0200 Subject: [PATCH] Always shaving delayedMediaShow for lightbox --- .../app/ui/gallery/lightbox/lightbox.gallery.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts b/src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts index 39a2d514..214c09c6 100644 --- a/src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts +++ b/src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts @@ -109,8 +109,10 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { params[QueryParams.gallery.photo] && params[QueryParams.gallery.photo] !== '' ) { + this.delayedMediaShow = params[QueryParams.gallery.photo] + // photos are not yet available to show if (!this.gridPhotoQL) { - return (this.delayedMediaShow = params[QueryParams.gallery.photo]); + return; } this.onNavigateTo(params[QueryParams.gallery.photo]); } else if (this.status === LightboxStates.Open) {