Skip to content

Commit 8ab2d73

Browse files
committed
Keep every shared option-list value in the search-router config
1 parent e43ec01 commit 8ab2d73

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/components/Search/SearchAutocompleteList.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,6 @@ function SearchAutocompleteList({
216216
} = useFilteredOptions({
217217
...SEARCH_ROUTER_OPTIONS_CONFIG,
218218
isSearching: !!autocompleteQueryValue.trim(),
219-
includeP2P: true,
220-
// The empty-query state renders only recent searches and recent reports (no standalone contacts),
221-
// so contacts can be deferred until the user types a query.
222-
deferContactsUntilSearch: true,
223-
maxRecentReports: INITIAL_MAX_RECENT_REPORTS,
224-
batchSize: RECENT_REPORTS_BATCH_SIZE,
225219
});
226220

227221
const isRecentSearchesDataLoaded = !isLoadingOnyxValue(recentSearchesMetadata);

src/components/Search/SearchRouter/searchRouterOptionsConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const RECENT_REPORTS_BATCH_SIZE = 500;
99
// state shows none.
1010
const SEARCH_ROUTER_OPTIONS_CONFIG = {
1111
enabled: true,
12+
includeP2P: true,
1213
deferContactsUntilSearch: true,
1314
maxRecentReports: INITIAL_MAX_RECENT_REPORTS,
1415
batchSize: RECENT_REPORTS_BATCH_SIZE,

0 commit comments

Comments
 (0)