From 90d5108544a6b5f09bfd50ca946b7b1108bea6b7 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 8 May 2024 13:39:59 +0200 Subject: [PATCH] this.carousel --- frontend/src/scripts/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 93b8f23..bf31ba6 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -49,7 +49,7 @@ class Main extends Component { new_index += this.state.photos.length } this.setState({currentImage: new_index}) - this.carousel && this.carousel.setState({currentIndex: 1}) + this.carousel && this. carousel.setState({currentIndex: 1}) } onSubmit(event){ event.preventDefault(); @@ -102,7 +102,7 @@ class Main extends Component { {this.state.photoIsOpen && - {carousel} + {this.carousel} }