Prevent double request when switching between graph time spans.
This commit is contained in:
parent
61c6345f75
commit
2f3d0ddf3e
@ -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 });
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user