Erik Sundell 7 лет назад
Родитель
Сommit
f6109d21d2
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts

+ 4 - 2
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) {