Commit a11b1804 by Torkel Ödegaard

Snapshots: Fixed issue with snapshoting dashboards with an interval template variable, Fixes #1846

parent f8cfbede
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
**Fixes** **Fixes**
- [Issue #1832](https://github.com/grafana/grafana/issues/1832). Graph Panel + Legend Table mode: Many series casued zero height graph, now legend will never reduce the height of the graph below 50% of row height. - [Issue #1832](https://github.com/grafana/grafana/issues/1832). Graph Panel + Legend Table mode: Many series casued zero height graph, now legend will never reduce the height of the graph below 50% of row height.
- [Issue #1846](https://github.com/grafana/grafana/issues/1846). Snapshots: Fixed issue with snapshoting dashboards with an interval template variable
# 2.0.1 (2015-04-20) # 2.0.1 (2015-04-20)
......
...@@ -52,7 +52,7 @@ function (angular, _, kbn) { ...@@ -52,7 +52,7 @@ function (angular, _, kbn) {
if (!variable.auto) { return; } if (!variable.auto) { return; }
// add auto option if missing // add auto option if missing
if (variable.options[0].text !== 'auto') { if (variable.options.length && variable.options[0].text !== 'auto') {
variable.options.unshift({ text: 'auto', value: '$__auto_interval' }); variable.options.unshift({ text: 'auto', value: '$__auto_interval' });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment