diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 64248e7..e1070f5 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[gallery_open]){ + for (const photo of this.state.photos[this.state.gallery_open]){ photos_gallery.push({ src: photo.thumbnail, width: photo.original_width,