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,