Skip to content
Permalink
Browse files

fix: move FR clearTimeOut to componentWillUnmount

  • Loading branch information...
hadarbmdev committed Jun 16, 2019
1 parent 7704f35 commit 48cb0792f147a32a3d16cc77f6ca1273ec9cc128
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/components/dashboard/FaceRecognition/FaceRecognition.js
@@ -54,6 +54,7 @@ class FaceRecognition extends React.Component<FaceRecognitionProps, State> {

componentWillUnmount = () => {
zoomSdkLoader.unload()
this.timeout && clearTimeout(this.timeout)
}

componentWillMount = async () => {
@@ -67,7 +68,6 @@ class FaceRecognition extends React.Component<FaceRecognitionProps, State> {

componentDidMount = () => {
this.setWidth()
this.timeout && clearTimeout(this.timeout)
}

setWidth = () => {

0 comments on commit 48cb079

Please sign in to comment.
You can’t perform that action at this time.