Merge pull request #3297 from influxdata/fixes/infinite-looping-dygraph

Prevent dygraph from continously updating
table/fix-click-to-sort
Brandon Farmer 2018-04-24 14:12:01 -07:00 committed by GitHub
commit 1dce1e799d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -191,7 +191,9 @@ const AutoRefresh = ComposedComponent => {
}
setResolution = resolution => {
this.setState({resolution})
if (resolution !== this.state.resolution) {
this.setState({resolution})
}
}
render() {