diff --git a/src/components/Slides/Menu/SlideList.js b/src/components/Slides/Menu/SlideList.js index a9bd81a..8e82db4 100755 --- a/src/components/Slides/Menu/SlideList.js +++ b/src/components/Slides/Menu/SlideList.js @@ -67,6 +67,8 @@ class SlideList extends Component { let slidePosition = this.state.slidePosition + 1; let currentSlideTypeIndex = this.state.currentSlideTypeIndex; let slideTypes = Object.keys(this.props.selectedParticipant.slides); + let openItems = this.state.openItems; + const openAccordion = openItems.includes(currentSlideTypeIndex); slideTypes.sort(); slideTypes.reverse(); @@ -96,6 +98,8 @@ handlePreviousSlide() { let slidePosition = this.state.slidePosition - 1; let currentSlideTypeIndex = this.state.currentSlideTypeIndex; let slideTypes = Object.keys(this.props.selectedParticipant.slides); + let openItems = this.state.openItems; + const openAccordion = openItems.includes(currentSlideTypeIndex); slideTypes.sort(); slideTypes.reverse();