Remove annotation timer at unmount

pull/10616/head
ebb-tide 2018-03-30 18:10:35 -07:00
parent f35d2f438e
commit aebedd84b3
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ class DashboardPage extends Component {
} }
componentWillUnmount() { componentWillUnmount() {
clearInterval(this.intervalID)
this.intervalID = false
window.removeEventListener('resize', this.handleWindowResize, true) window.removeEventListener('resize', this.handleWindowResize, true)
this.props.handleDismissEditingAnnotation() this.props.handleDismissEditingAnnotation()
} }