debug gallery?

This commit is contained in:
Martin Quarda 2024-10-07 17:40:11 +02:00
parent 4487dc23e5
commit 079dfbf40a

View File

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