Просмотр исходного кода

ugly temporary fix for scope issue. will be removed later on

Erik Sundell 7 лет назад
Родитель
Сommit
87cb3d4caa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts

+ 1 - 1
public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts

@@ -32,7 +32,7 @@ export class StackdriverFilterCtrl {
 
   /** @ngInject */
   constructor(private $scope, private uiSegmentSrv, private templateSrv, private $rootScope) {
-    this.$scope = $scope.$parent;
+    this.$scope = $scope.hasOwnProperty('groupBysChanged') ? $scope : $scope.$parent;
 
     this.initSegments(this.$scope.hideGroupBys);
   }