From 6fe7c30ebf6bcc889756b98434992f7ea6dbbfd5 Mon Sep 17 00:00:00 2001 From: QooQooDass Date: Mon, 25 Jul 2022 11:43:52 +0900 Subject: [PATCH] [#noissue] Fix duplicated request in changing host-group --- .../metric-contents/metric-contents-container.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/main/angular/src/app/core/components/metric-contents/metric-contents-container.component.ts b/web/src/main/angular/src/app/core/components/metric-contents/metric-contents-container.component.ts index 7188e482afc0..ed7261162aa8 100644 --- a/web/src/main/angular/src/app/core/components/metric-contents/metric-contents-container.component.ts +++ b/web/src/main/angular/src/app/core/components/metric-contents/metric-contents-container.component.ts @@ -45,6 +45,7 @@ export class MetricContentsContainerComponent implements OnInit, OnDestroy { // }); this.newUrlStateNotificationService.onUrlStateChange$.pipe( + takeUntil(this.unsubscribe), filter((urlService: NewUrlStateNotificationService) => urlService.isValueChanged(UrlPathId.HOST_GROUP) || urlService.isValueChanged(UrlPathId.HOST)), tap(() => this.metricList = []), switchMap((urlService: NewUrlStateNotificationService) => {