Pārlūkot izejas kodu

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

Erik Sundell 7 gadi atpakaļ
vecāks
revīzija
87cb3d4caa

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

@@ -32,7 +32,7 @@ export class StackdriverFilterCtrl {
 
 
   /** @ngInject */
   /** @ngInject */
   constructor(private $scope, private uiSegmentSrv, private templateSrv, private $rootScope) {
   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);
     this.initSegments(this.$scope.hideGroupBys);
   }
   }