Skip to content

Commit

Permalink
fix: Fyle project category r fix (#3196)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunaj5 authored Sep 3, 2024
1 parent b71a844 commit 7c03727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/fyle/add-edit-expense/add-edit-expense.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 7c03727

Please sign in to comment.