reused clearPollingInterval

This commit is contained in:
Rares Mardare 2022-10-04 11:11:35 +03:00
parent cd7c77230e
commit d8bf3d0bd0
2 changed files with 1 additions and 4 deletions

View file

@ -417,8 +417,6 @@ class IncidentsFilters extends Component<IncidentsFiltersProps, IncidentsFilters
const { onChange } = this.props;
const { values } = this.state;
console.log('Change!');
onChange(values, isOnMount);
};

View file

@ -96,8 +96,7 @@ class Incidents extends React.Component<IncidentsPageProps, IncidentsPageState>
private pollingIntervalId: NodeJS.Timer = undefined;
componentWillUnmount(): void {
clearInterval(this.pollingIntervalId);
this.pollingIntervalId = undefined;
this.clearPollingInterval();
}
render() {