diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index ac8f60c..64248e7 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -110,7 +110,7 @@ class Main extends Component { render(){ let photos_gallery = []; let photos_carousel = []; - if(gallery_open){ + if(this.state.gallery_open){ for (const photo of this.state.photos[gallery_open]){ photos_gallery.push({ src: photo.thumbnail,