Fix transaction list loading

This commit is contained in:
William Brawner 2021-02-15 21:26:58 -07:00
parent d2b2c951a7
commit c139a3d33a
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ export class TransactionListComponent implements OnInit {
}
}
this.twigsService.getTransactions(this.budgetIds.join(','), this.categoryIds.join(','), null, from, to).subscribe(transactions => {
this.twigsService.getTransactions(this.budgetIds.join(','), this.categoryIds?.join(','), null, from, to).subscribe(transactions => {
this.transactions = transactions;
});
}

View file

@ -1,4 +1,4 @@
<app-transaction-list [budgetIds]="budgetId" [categoryIds]="categoryId"></app-transaction-list>
<app-transaction-list [budgetIds]="[budgetId]" [categoryIds]="categoryId"></app-transaction-list>
<a mat-fab routerLink="/transactions/new" [queryParams]="{budgetId: budgetId}">
<mat-icon aria-label="Add">add</mat-icon>
</a>