We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6bc177 commit a5fa8b5Copy full SHA for a5fa8b5
src/app/fyle/add-edit-expense/add-edit-expense.page.ts
@@ -439,7 +439,7 @@ export class AddEditExpensePage implements OnInit {
439
440
selectedCategory$: Observable<OrgCategory>;
441
442
- vendorOptions: string[];
+ vendorOptions: string[] = [];
443
444
constructor(
445
private activatedRoute: ActivatedRoute,
@@ -4556,6 +4556,9 @@ export class AddEditExpensePage implements OnInit {
4556
}
4557
4558
private filterVendor(vendor: string): string | null {
4559
+ if (!vendor || this.vendorOptions?.length === 0) {
4560
+ return vendor;
4561
+ }
4562
return this.vendorOptions?.find((option) => option.toLowerCase() === vendor.toLowerCase()) || null;
4563
4564
0 commit comments