mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(templating): fixed issue with templated dashboard and error selectOptionsForCurrentValue undefined
This commit is contained in:
parent
fb81a4f318
commit
aaae23e9f0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user