Fix double http query when switching timespan for the first time
This commit is contained in:
1 parent
4a9089633c
commit
2bc11b4a75
7 files changed
+7
-7
No files matched your search
@@ -76,7 +76,7 @@ export class HashrateChartComponent implements OnInit {
|
||||
.fragment
|
||||
.subscribe((fragment) => {
|
||||
if (['1m', '3m', '6m', '1y', '2y', '3y', 'all'].indexOf(fragment) > -1) {
|
||||
this.radioGroupForm.controls.dateSpan.setValue(fragment, { emitEvent: true });
|
||||
this.radioGroupForm.controls.dateSpan.setValue(fragment, { emitEvent: false });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user