diff --git a/assets/js/components/respondents/RespondentIndex.jsx b/assets/js/components/respondents/RespondentIndex.jsx index 6c6e066a7..d5e63a705 100644 --- a/assets/js/components/respondents/RespondentIndex.jsx +++ b/assets/js/components/respondents/RespondentIndex.jsx @@ -102,6 +102,14 @@ class RespondentIndex extends Component { } } + componentWillUnmount() { + const timer = this.state.filesFetchTimer + if (timer) { + clearInterval(timer) + this.setState({filesFetchTimer: null}) + } + } + fetchRespondents(pageNumber = 1, overrideFilter = null) { const { projectId, surveyId, pageSize, filter, sortBy, sortAsc } = this.props const _filter = overrideFilter == null ? filter : overrideFilter