Quellcode durchsuchen

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

Erik Sundell vor 7 Jahren
Ursprung
Commit
87cb3d4caa
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);
   }