Prevent double request when switching between graph time spans.

This commit is contained in:
Simon Lindh 2019-08-29 14:36:20 +02:00
parent 61c6345f75
commit 2f3d0ddf3e

View File

@ -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 });
}
});