From 87cb3d4caa1a85b2d5df790feac1e2da24169b79 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 7 Jan 2019 14:52:36 +0100 Subject: [PATCH] ugly temporary fix for scope issue. will be removed later on --- public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts index 3a0b7a40a4e..0513677c3f9 100644 --- a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts +++ b/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); }