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

ugly fix. will be removed later on

Erik Sundell 7 лет назад
Родитель
Сommit
803d546c70
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 */
   /** @ngInject */
   constructor(private $scope, private uiSegmentSrv, private templateSrv) {
   constructor(private $scope, private uiSegmentSrv, private templateSrv) {
-    this.$scope = $scope.hasOwnProperty('groupBysChanged') ? $scope : $scope.$parent;
+    this.$scope = $scope.labelData ? $scope : $scope.$parent;
 
 
     this.initSegments(this.$scope.hideGroupBys);
     this.initSegments(this.$scope.hideGroupBys);
   }
   }