reused clearPollingInterval
This commit is contained in:
parent
cd7c77230e
commit
d8bf3d0bd0
2 changed files with 1 additions and 4 deletions
|
|
@ -417,8 +417,6 @@ class IncidentsFilters extends Component<IncidentsFiltersProps, IncidentsFilters
|
|||
const { onChange } = this.props;
|
||||
const { values } = this.state;
|
||||
|
||||
console.log('Change!');
|
||||
|
||||
onChange(values, isOnMount);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue