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,