Fix scene null check on visualization load

This commit is contained in:
Mononaut committed 2023-07-14 11:22:09 +09:00
1 parent e9c618849d
commit d60709deff
1 file changed
+1 -1
@@ -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);