Commit aaae23e9 by Torkel Ödegaard

fix(templating): fixed issue with templated dashboard and error…

fix(templating): fixed issue with templated dashboard and error selectOptionsForCurrentValue undefined
parent fb81a4f3
......@@ -80,11 +80,11 @@ function (angular, _, kbn) {
if (_.isArray(variable.current.value)) {
variable.current.text = variable.current.value.join(' + ');
this.selectOptionsForCurrentValue(variable);
self.selectOptionsForCurrentValue(variable);
}
templateSrv.updateTemplateData();
return this.updateOptionsInChildVariables(variable);
return self.updateOptionsInChildVariables(variable);
};
this.variableUpdated = function(variable) {
......@@ -148,7 +148,7 @@ function (angular, _, kbn) {
}
if (_.isArray(variable.current.value)) {
this.selectOptionsForCurrentValue(variable);
self.selectOptionsForCurrentValue(variable);
} else {
var currentOption = _.findWhere(variable.options, { text: variable.current.text });
if (currentOption) {
......
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