Merge pull request #2554 from influxdata/bugfix/range

Prevent inversion of graph
pull/10616/head
Andrew Watkins 2017-12-13 08:09:56 -08:00 committed by GitHub
commit 425697d677
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@
### UI Improvements
### Bug Fixes
1. [#2528](https://github.com/influxdata/chronograf/pull/2528): Fix template rendering to ignore template if not in query
1. [#2554](https://github.com/influxdata/chronograf/pull/2554): Fix graph inversion if a user supplies a min y-bound > max y-bound
## v1.4.0.0-beta1 [2017-12-07]
### Features

View File

@ -80,6 +80,11 @@ const getRange = (
}
}
// prevents inversion of graph
if (min > max) {
return [min, min + 1]
}
return [min, max]
}