mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Snapshots: Fixed issue with snapshoting dashboards with an interval template variable, Fixes #1846
This commit is contained in:
@@ -52,7 +52,7 @@ function (angular, _, kbn) {
|
||||
if (!variable.auto) { return; }
|
||||
|
||||
// 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' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user