From 7c037276bd521db5648089466535bc456319d225 Mon Sep 17 00:00:00 2001 From: Arjun Date: Tue, 3 Sep 2024 12:36:11 +0530 Subject: [PATCH] fix: Fyle project category r fix (#3196) --- src/app/fyle/add-edit-expense/add-edit-expense.page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/fyle/add-edit-expense/add-edit-expense.page.ts b/src/app/fyle/add-edit-expense/add-edit-expense.page.ts index 429e4c9302..b816827092 100644 --- a/src/app/fyle/add-edit-expense/add-edit-expense.page.ts +++ b/src/app/fyle/add-edit-expense/add-edit-expense.page.ts @@ -1624,11 +1624,11 @@ export class AddEditExpensePage implements OnInit { selectedCategoryId: this.etxn$.pipe(map((etxn) => etxn.tx.org_category_id)), }).pipe( switchMap(({ recentValues, eou, activeCategories, isProjectCategoryRestrictionsEnabled, selectedCategoryId }) => { - const categoryId = `${selectedCategoryId}` || null; + const categoryIds = selectedCategoryId ? [`${selectedCategoryId}`] : null; return this.recentlyUsedItemsService.getRecentlyUsedProjects({ recentValues, eou, - categoryIds: [categoryId], + categoryIds, isProjectCategoryRestrictionsEnabled, activeCategoryList: activeCategories, });