debug gallery?

This commit is contained in:
Martin Quarda 2024-10-07 17:38:53 +02:00
parent a01c8fa8d4
commit 4487dc23e5

View File

@ -110,8 +110,8 @@ class Main extends Component {
render(){
let photos_gallery = [];
let photos_carousel = [];
if(this.state.gallery_open){
for (const photo of this.state.photos[this.state.gallery_open].photos){
if(this.state.gallery_open !== undefined){
for (const photo of this.state.photos[this.state.gallery_open]){
console.log(photo);
photos_gallery.push({
src: photo.thumbnail,