Fix bug on selecting single-stat Visualization Type when no queries (#1484)

* Fix single-stat bug when no queries yet

* Bupdate changebog
pull/1499/head
Jared Scheib 2017-05-17 10:58:07 -07:00 committed by GitHub
parent 5b4fc6cdf9
commit 843ee32c72
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,8 @@
1. [#1455](https://github.com/influxdata/chronograf/issues/1455): Fix backwards sort arrows in tables
1. [#1423](https://github.com/influxdata/chronograf/issues/1423): Make logout nav item consistent with design
1. [#1426](https://github.com/influxdata/chronograf/issues/1426): Fix graph loading spinner
1. [#1485](https://github.com/influxdata/chronograf/issues/1485): Filter out any template variable values that are empty, whitespace, or duplicates
1. [#1485](https://github.com/influxdata/chronograf/pull/1485): Filter out any template variable values that are empty, whitespace, or duplicates
1. [#1484](https://github.com/influxdata/chronograf/pull/1484): Allow user to select SingleStat as Visualization Type before adding any queries and continue to be able to click Add Query
### Features
1. [#1477](https://github.com/influxdata/chronograf/pull/1477): Add ability to log alerts

View File

@ -43,7 +43,7 @@ const VisView = ({
if (cellType === 'single-stat') {
return (
<RefreshingSingleStat
queries={[queries[0]]}
queries={queries.length ? [queries[0]] : []}
autoRefresh={autoRefresh}
templates={templates}
/>