AngularPanels: Check for digest cycle on root scope (#20919)

This commit is contained in:
Torkel Ödegaard 2019-12-06 09:03:14 +01:00 committed by GitHub
parent ced13da889
commit 2a44cbd137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ class MetricsPanelCtrl extends PanelCtrl {
}
angularDirtyCheck() {
if (!this.$scope.$$phase) {
if (!this.$scope.$root.$$phase) {
this.$scope.$digest();
}
}