mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
templating: fix dependent variable updating (#9306)
This commit is contained in:
parent
bef4b9b3b0
commit
fdec9a4daf
@ -43,7 +43,6 @@ export class VariableSrv {
|
|||||||
var previousOptions = variable.options.slice();
|
var previousOptions = variable.options.slice();
|
||||||
|
|
||||||
return variable.updateOptions()
|
return variable.updateOptions()
|
||||||
.then(this.variableUpdated.bind(this, variable))
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (angular.toJson(previousOptions) !== angular.toJson(variable.options)) {
|
if (angular.toJson(previousOptions) !== angular.toJson(variable.options)) {
|
||||||
this.$rootScope.$emit('template-variable-value-updated');
|
this.$rootScope.$emit('template-variable-value-updated');
|
||||||
|
Loading…
Reference in New Issue
Block a user