From 2bef2011ce917053262ab6f2e675e72385f336fa Mon Sep 17 00:00:00 2001 From: Batwam <56710655+Batwam@users.noreply.github.com> Date: Wed, 24 Sep 2025 12:54:24 +0800 Subject: [PATCH] update only on graph change --- .../app/components/home-overview/home-overview.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 7d9dee4d9..fe1474171 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -166,7 +166,9 @@ export class GfHomeOverviewComponent implements OnDestroy, OnInit { } public onMetricClick(selectedgraph_type: string): void { - this.graph_type = selectedgraph_type; // update metric graph_type - this.update(); // rebuild historicalDataItems + if (this.graph_type !== selectedgraph_type) { + this.graph_type = selectedgraph_type; + this.update(); + } } }