Clear interval when live updating is changed to Pause

pull/4088/head
Brandon Farmer 2018-08-02 11:06:29 -07:00
parent 2b71e67f4d
commit dd989467f3
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ class LogsPage extends Component<Props, State> {
this.props.getSource(source.id)
}
if (this.liveUpdatingStatus === LiveUpdating.Pause && this.interval) {
clearInterval(this.interval)
this.interval = null
}
}
public componentDidMount() {