Skip to content

Commit

Permalink
Merge pull request #41009 from c3024/remove-max-recent-reports-limit-…
Browse files Browse the repository at this point in the history
…on-filtered-options-for-share-categorize-actions

remove maxRecentReportsToShow limit for categorize and share actions for track expense
  • Loading branch information
thienlnam committed Apr 25, 2024
2 parents f903144 + e142951 commit 9ea868b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,7 @@ function getFilteredOptions(
policyReportFieldOptions: string[] = [],
recentlyUsedPolicyReportFieldOptions: string[] = [],
includePersonalDetails = true,
maxRecentReportsToShow = 5,
) {
return getOptions(
{reports, personalDetails},
Expand All @@ -2008,7 +2009,7 @@ function getFilteredOptions(
selectedOptions,
includeRecentReports: true,
includePersonalDetails,
maxRecentReportsToShow: 5,
maxRecentReportsToShow,
excludeLogins,
includeOwnedWorkspaceChats,
includeP2P,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({participants, onF
undefined,
undefined,
!isCategorizeOrShareAction,
isCategorizeOrShareAction ? 0 : undefined,
);

const formatResults = OptionsListUtils.formatSectionsFromSearchTerm(
Expand Down

0 comments on commit 9ea868b

Please sign in to comment.