From 66c27213f11fce966cf4b5d49165837a72791330 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 7 Oct 2024 17:31:46 +0200 Subject: [PATCH] fix gallery? --- 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 91cf2c4..21c0688 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -111,7 +111,7 @@ class Main extends Component { let photos_gallery = []; let photos_carousel = []; if(this.state.gallery_open){ - for (const photo of this.state.photos[this.state.gallery_open] || []){ + for (const photo of this.state.photos[this.state.gallery_open].photos){ photos_gallery.push({ src: photo.thumbnail, width: photo.original_width,