Give preference to queryConfig range

pull/10616/head
Andrew Watkins 2017-07-27 13:29:46 -07:00
parent 56c30ddc6d
commit c2715b3263
1 changed files with 2 additions and 1 deletions

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 => {