Skip to content

Commit

Permalink
Merge pull request #53232 from Expensify/cmartins-bumpRouterLimit
Browse files Browse the repository at this point in the history
Bump Search router limit
  • Loading branch information
luacmartins authored Nov 27, 2024
2 parents 849b20a + af48874 commit 05a9e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Search/SearchRouter/SearchRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ function SearchRouter({onRouterClose, shouldHideInputCaret}: SearchRouterProps)

const recentReports: OptionData[] = useMemo(() => {
if (debouncedInputValue === '') {
return searchOptions.recentReports.slice(0, 10);
return searchOptions.recentReports.slice(0, 20);
}

const reportOptions: OptionData[] = [...filteredOptions.recentReports, ...filteredOptions.personalDetails];
if (filteredOptions.userToInvite) {
reportOptions.push(filteredOptions.userToInvite);
}
return reportOptions.slice(0, 10);
return reportOptions.slice(0, 20);
}, [debouncedInputValue, filteredOptions, searchOptions]);

const reportForContextualSearch = contextualReportID ? searchOptions.recentReports?.find((option) => option.reportID === contextualReportID) : undefined;
Expand Down

0 comments on commit 05a9e52

Please sign in to comment.