diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 981e8e1..17a70f2 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -97,7 +97,7 @@ class Main extends Component { showPlayButton={false} startIndex={this.state.currentImage} showThumbnails={false} - renderCustomControls={this.renderCloseButton} + renderCustomControls={this.renderCloseButton.bind(this)} /> }