From daa394d9944a3947d369ba9b0edd652358013ea2 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 7 Oct 2024 17:03:20 +0200 Subject: [PATCH] fix --- frontend/src/scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index ac8f60c..64248e7 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -110,7 +110,7 @@ class Main extends Component { render(){ let photos_gallery = []; let photos_carousel = []; - if(gallery_open){ + if(this.state.gallery_open){ for (const photo of this.state.photos[gallery_open]){ photos_gallery.push({ src: photo.thumbnail,