diff --git a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts index 99a2bd0f361..ffc169f1e66 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) { - this.$scope = $scope.hasOwnProperty('groupBysChanged') ? $scope : $scope.$parent; + this.$scope = $scope.labelData ? $scope : $scope.$parent; this.initSegments(this.$scope.hideGroupBys); }