Clear interval when live updating is changed to Pause
parent
2b71e67f4d
commit
dd989467f3
|
@ -154,6 +154,11 @@ class LogsPage extends Component<Props, State> {
|
||||||
|
|
||||||
this.props.getSource(source.id)
|
this.props.getSource(source.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.liveUpdatingStatus === LiveUpdating.Pause && this.interval) {
|
||||||
|
clearInterval(this.interval)
|
||||||
|
this.interval = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public componentDidMount() {
|
public componentDidMount() {
|
||||||
|
|
Loading…
Reference in New Issue