Merge pull request #2988 from mempool/mononaut/fix-liquid-block-error

Fix navigation-breaking JS error on liquid block page
This commit is contained in:
softsimon 2023-01-28 16:19:59 +04:00 committed by GitHub
commit 74eb5ea11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,17 +439,17 @@ export class BlockComponent implements OnInit, OnDestroy {
ngOnDestroy() { ngOnDestroy() {
this.stateService.markBlock$.next({}); this.stateService.markBlock$.next({});
this.transactionSubscription.unsubscribe(); this.transactionSubscription?.unsubscribe();
this.overviewSubscription?.unsubscribe(); this.overviewSubscription?.unsubscribe();
this.auditSubscription?.unsubscribe(); this.auditSubscription?.unsubscribe();
this.keyNavigationSubscription.unsubscribe(); this.keyNavigationSubscription?.unsubscribe();
this.blocksSubscription.unsubscribe(); this.blocksSubscription?.unsubscribe();
this.networkChangedSubscription.unsubscribe(); this.networkChangedSubscription?.unsubscribe();
this.queryParamsSubscription.unsubscribe(); this.queryParamsSubscription?.unsubscribe();
this.timeLtrSubscription.unsubscribe(); this.timeLtrSubscription?.unsubscribe();
this.auditSubscription.unsubscribe(); this.auditSubscription?.unsubscribe();
this.unsubscribeNextBlockSubscriptions(); this.unsubscribeNextBlockSubscriptions();
this.childChangeSubscription.unsubscribe(); this.childChangeSubscription?.unsubscribe();
} }
unsubscribeNextBlockSubscriptions() { unsubscribeNextBlockSubscriptions() {