Skip to content

Commit

Permalink
fix: Added the fail safe for checking id before before making the api…
Browse files Browse the repository at this point in the history
… calls (#3334)
  • Loading branch information
devendrafyle authored Dec 13, 2024
1 parent 797f275 commit 40c1db6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/fyle/merge-expense/merge-expense.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ export class MergeExpensePage implements OnInit, AfterViewChecked {
}

onReceiptChanged(receipt_ids: string): void {
if (!receipt_ids) {
return;
}
this.mergeExpensesService.getAttachements(receipt_ids).subscribe((receipts) => {
this.selectedReceiptsId = receipts.map((receipt) => receipt.id);
this.attachments = receipts;
Expand Down

0 comments on commit 40c1db6

Please sign in to comment.