Skip to content

Commit a1650f0

Browse files
committed
fix: stuff
1 parent f60ac50 commit a1650f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Search/SearchPageHeader/SearchPageHeaderInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function SearchPageHeaderInput({queryJSON, searchRouterListVisible, hideSearchRo
243243
}
244244

245245
if (item.searchItemType === CONST.SEARCH.SEARCH_ROUTER_ITEM_TYPE.AUTOCOMPLETE_SUGGESTION && textInputValue) {
246-
const fieldKey = item.mapKey?.includes(':') ? item.mapKey.split(':').at(0) : null;
246+
const fieldKey = item.mapKey?.includes(':') ? item.mapKey.split(':').at(0) : item.mapKey;
247247
const keyIndex = fieldKey ? textInputValue.toLowerCase().lastIndexOf(`${fieldKey}:`) : -1;
248248

249249
const trimmedUserSearchQuery =

src/components/Search/SearchRouter/SearchRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla
349349
timestamp: endTime,
350350
});
351351
} else if (item.searchItemType === CONST.SEARCH.SEARCH_ROUTER_ITEM_TYPE.AUTOCOMPLETE_SUGGESTION && textInputValue) {
352-
const fieldKey = item.mapKey?.includes(':') ? item.mapKey.split(':').at(0) : null;
352+
const fieldKey = item.mapKey?.includes(':') ? item.mapKey.split(':').at(0) : item.mapKey;
353353
const keyIndex = fieldKey ? textInputValue.toLowerCase().lastIndexOf(`${fieldKey}:`) : -1;
354354

355355
const trimmedUserSearchQuery =

0 commit comments

Comments
 (0)