Merge pull request #1798 from influxdata/bugfix/domain

Give preference to queryConfig range
pull/10616/head
Andrew Watkins 2017-07-28 07:49:41 -07:00 committed by GitHub
commit fa94e09210
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
## v1.3.6.0 [unreleased]
### Bug Fixes
1. [#1798](https://github.com/influxdata/chronograf/pull/1798): Fix domain not updating in visualizations when changing time range manually
1. [#1799](https://github.com/influxdata/chronograf/pull/1799): Prevent console error spam from Dygraph.synchronize when a dashboard has only one graph
### Features

View File

@ -93,7 +93,8 @@ const Visualization = React.createClass({
const {view} = this.state
const statements = queryConfigs.map(query => {
const text = query.rawText || buildInfluxQLQuery(timeRange, query)
const text =
query.rawText || buildInfluxQLQuery(query.range || timeRange, query)
return {text, id: query.id}
})
const queries = statements.filter(s => s.text !== null).map(s => {