From 079dfbf40a4cb12598cf85c3e27aa25961d5ea92 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 7 Oct 2024 17:40:11 +0200 Subject: [PATCH] debug gallery? --- frontend/src/scripts/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 40e8c9c..8260c17 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -110,9 +110,9 @@ class Main extends Component { render(){ let photos_gallery = []; let photos_carousel = []; + console.log(this.state.photos); if(this.state.gallery_open !== undefined){ - for (const photo of this.state.photos[this.state.gallery_open]){ - console.log(photo); + for (const photo of this.state.photos[this.state.gallery_open].photos){ photos_gallery.push({ src: photo.thumbnail, width: photo.original_width,