From d60709deff25b04572e1475a26b337ec93c4f3bf Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 14 Jul 2023 11:21:23 +0900 Subject: [PATCH] Fix scene null check on visualization load --- .../block-overview-graph/block-overview-graph.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/block-overview-graph/block-overview-graph.component.ts b/frontend/src/app/components/block-overview-graph/block-overview-graph.component.ts index 583f9875c..cc9934af8 100644 --- a/frontend/src/app/components/block-overview-graph/block-overview-graph.component.ts +++ b/frontend/src/app/components/block-overview-graph/block-overview-graph.component.ts @@ -426,7 +426,7 @@ export class BlockOverviewGraphComponent implements AfterViewInit, OnDestroy, On if (this.highlightTx && this.highlightTx.txid !== this.searchText && this.scene) { this.scene.setHighlight(this.highlightTx, false); this.start(); - } else if (this.searchText && this.searchText.length === 64) { + } else if (this.scene?.txs && this.searchText && this.searchText.length === 64) { this.highlightTx = this.scene.txs[this.searchText]; if (this.highlightTx) { this.scene.setHighlight(this.highlightTx, true);