From de9ace731d2bb6e952f7f947fd7b93fadf8cff80 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 12 Dec 2018 13:59:13 +0100 Subject: [PATCH] fix remove filter bug --- .../app/plugins/datasource/stackdriver/query_filter_ctrl.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts index d270290abb2..8ce2dfde554 100644 --- a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts +++ b/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts @@ -252,8 +252,10 @@ export class StackdriverFilterCtrl { return []; } - this.removeSegment.value = removeText; - return [...elements, this.removeSegment]; + return [ + ...elements, + this.uiSegmentSrv.newSegment({ fake: true, value: removeText || this.defaultRemoveGroupByValue }), + ]; } async getGroupBys(segment) {