From af4887405fe95c5c0160f9d48192f49fee7df5e0 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 27 Nov 2024 15:41:42 -0700 Subject: [PATCH] bump router limit --- src/components/Search/SearchRouter/SearchRouter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Search/SearchRouter/SearchRouter.tsx b/src/components/Search/SearchRouter/SearchRouter.tsx index 8b98858405c2..34cfe1c2f2da 100644 --- a/src/components/Search/SearchRouter/SearchRouter.tsx +++ b/src/components/Search/SearchRouter/SearchRouter.tsx @@ -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;