Skip to content

Commit

Permalink
bump router limit
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Nov 27, 2024
1 parent bab8578 commit af48874
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 af48874

Please sign in to comment.