Remove annotation timer at unmount
parent
f35d2f438e
commit
aebedd84b3
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue