fix gallery?

This commit is contained in:
Martin Quarda 2024-10-07 17:31:46 +02:00
parent b72a2e461d
commit 66c27213f1

View File

@ -111,7 +111,7 @@ class Main extends Component {
let photos_gallery = []; let photos_gallery = [];
let photos_carousel = []; let photos_carousel = [];
if(this.state.gallery_open){ 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({ photos_gallery.push({
src: photo.thumbnail, src: photo.thumbnail,
width: photo.original_width, width: photo.original_width,