exporter: query template var keeps refresh value..

on export if the value is not set to never. Otherwise the template
variable will not be populated with any values.""
This commit is contained in:
Daniel Lee 2017-06-13 22:42:56 +02:00
parent 812ac5cb8e
commit 1f92e589e8

View File

@ -103,7 +103,7 @@ export class DashboardExporter {
templateizeDatasourceUsage(variable);
variable.options = [];
variable.current = {};
variable.refresh = 1;
variable.refresh = variable.refresh > 0 ? variable.refresh : 1;
}
}