mirror of
https://github.com/mempool/mempool.git
synced 2025-10-10 02:42:50 +02:00
Remove duplicated ChangeDetectorRef in blockchains blocks component
This commit is contained in:
@@ -47,13 +47,12 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy {
|
|||||||
public stateService: StateService,
|
public stateService: StateService,
|
||||||
private cd: ChangeDetectorRef,
|
private cd: ChangeDetectorRef,
|
||||||
private location: Location,
|
private location: Location,
|
||||||
private cdr: ChangeDetectorRef
|
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
enabledMiningInfoIfNeeded(url) {
|
enabledMiningInfoIfNeeded(url) {
|
||||||
this.showMiningInfo = url === '/mining';
|
this.showMiningInfo = url === '/mining';
|
||||||
this.cdr.detectChanges(); // Need to update the view asap
|
this.cd.markForCheck(); // Need to update the view asap
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
Reference in New Issue
Block a user