diff --git a/apps/client/src/app/components/transactions-table/transactions-table.component.html b/apps/client/src/app/components/transactions-table/transactions-table.component.html index 4af802911..d4dddbe20 100644 --- a/apps/client/src/app/components/transactions-table/transactions-table.component.html +++ b/apps/client/src/app/components/transactions-table/transactions-table.component.html @@ -12,6 +12,7 @@ filter.toLowerCase().indexOf(filterValue) === 0 ) ); + } else { + this.filteredTransactions$.next(this.allFilteredTransactions); } }); } @@ -249,7 +251,9 @@ export class TransactionsTableComponent this.getFilterableValues(transaction, fieldValues); } - return [...fieldValues].sort(); + return [...fieldValues] + .filter(item => item != undefined) + .sort(); } private static getFilterableValues( @@ -261,6 +265,7 @@ export class TransactionsTableComponent fieldValues.add(transaction.type); fieldValues.add(transaction.Account?.name); fieldValues.add(transaction.Account?.Platform?.name); - return [...fieldValues]; + return [...fieldValues] + .filter(item => item != undefined); } }