From 2f3d0ddf3efcb95582bfd80b9e832e53d5862c6a Mon Sep 17 00:00:00 2001 From: Simon Lindh Date: Thu, 29 Aug 2019 14:36:20 +0200 Subject: [PATCH] Prevent double request when switching between graph time spans. --- frontend/src/app/statistics/statistics.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/statistics/statistics.component.ts b/frontend/src/app/statistics/statistics.component.ts index 6b39d1aae..fb5c969f2 100644 --- a/frontend/src/app/statistics/statistics.component.ts +++ b/frontend/src/app/statistics/statistics.component.ts @@ -122,7 +122,7 @@ export class StatisticsComponent implements OnInit { .fragment .subscribe((fragment) => { if (['2h', '24h', '1w', '1m', '3m', '6m'].indexOf(fragment) > -1) { - this.radioGroupForm.controls['dateSpan'].setValue(fragment); + this.radioGroupForm.controls['dateSpan'].setValue(fragment, { emitEvent: false }); } });