Skip to content

Commit

Permalink
fix: merge expenses data of expenses is undefined (#3199)
Browse files Browse the repository at this point in the history
* fix: merge expenses data of expenses is undefined

* fix: fixed the code

---------

Co-authored-by: Shrasty Rastogi <[email protected]>
  • Loading branch information
ShrastyR and Shrasty Rastogi authored Sep 9, 2024
1 parent e799237 commit 7a27205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/fyle/merge-expense/merge-expense.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ export class MergeExpensePage implements OnInit, AfterViewChecked {

this.setupCustomInputs();

this.loadGenericFieldsOptions();
this.loadCategoryDependentFields();
this.subscribeExpenseChange();

Expand All @@ -329,6 +328,7 @@ export class MergeExpensePage implements OnInit, AfterViewChecked {
this.expenses = expenses;
// Set receipts from expenses if the merge form is having one or more expenses without receipts
this.setupDefaultReceipts(expenses);
this.loadGenericFieldsOptions();
});

this.combinedCustomProperties = this.generateCustomInputOptions(customProperties as Partial<CustomInput>[][]);
Expand Down

0 comments on commit 7a27205

Please sign in to comment.