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

This commit is contained in:
Erik Sundell
2019-01-07 14:52:36 +01:00
parent e75aec9954
commit 87cb3d4caa

View File

@@ -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);
}