From 1ca1d0b109cb4e96f241f4982731f6dc70f4f98c Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 28 Aug 2022 17:48:51 +0200 Subject: [PATCH] Possible fix for failing test --- .../transactions-list/transactions-list.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.ts b/frontend/src/app/components/transactions-list/transactions-list.component.ts index a5cfde02f..1f5fff3d8 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.ts +++ b/frontend/src/app/components/transactions-list/transactions-list.component.ts @@ -61,6 +61,9 @@ export class TransactionsListComponent implements OnInit, OnChanges { .pipe( switchMap((txIds) => this.apiService.getOutspendsBatched$(txIds)), tap((outspends: Outspend[][]) => { + if (!this.transactions) { + return; + } const transactions = this.transactions.filter((tx) => !tx._outspends); outspends.forEach((outspend, i) => { transactions[i]._outspends = outspend;