1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Always shaving delayedMediaShow for lightbox

This commit is contained in:
Patrik J. Braun 2023-09-20 20:39:11 +02:00
parent 78041a1d9c
commit 4bbc3a4e68

View File

@ -109,8 +109,10 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
params[QueryParams.gallery.photo] && params[QueryParams.gallery.photo] &&
params[QueryParams.gallery.photo] !== '' params[QueryParams.gallery.photo] !== ''
) { ) {
this.delayedMediaShow = params[QueryParams.gallery.photo]
// photos are not yet available to show
if (!this.gridPhotoQL) { if (!this.gridPhotoQL) {
return (this.delayedMediaShow = params[QueryParams.gallery.photo]); return;
} }
this.onNavigateTo(params[QueryParams.gallery.photo]); this.onNavigateTo(params[QueryParams.gallery.photo]);
} else if (this.status === LightboxStates.Open) { } else if (this.status === LightboxStates.Open) {