From eccbcbe53b557d0860104ac291f8d90c08ed78a5 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 13 Jul 2023 11:58:29 +0900 Subject: [PATCH] Add missing this.block null check --- frontend/src/app/components/block/block.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 84028820c..0d733ff6b 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -700,7 +700,7 @@ export class BlockComponent implements OnInit, OnDestroy { } loadedCacheBlock(block: BlockExtended): void { - if (block.height === this.block.height && block.id !== this.block.id) { + if (this.block && block.height === this.block.height && block.id !== this.block.id) { this.block.stale = true; this.block.canonical = block.id; }