Skip to content

Commit 9c9f828

Browse files
committed
PR fixes
1 parent a2a3e6e commit 9c9f828

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Search/SearchRouter/SearchRouter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla
320320
});
321321

322322
const modalWidth = shouldUseNarrowLayout ? styles.w100 : {width: variables.searchRouterPopoverWidth};
323-
323+
const shouldShowSearchList = areOptionsInitialized && isRecentSearchesDataLoaded;
324324
return (
325325
<View
326326
style={[styles.flex1, modalWidth, styles.h100, !shouldUseNarrowLayout && styles.mh85vh]}
@@ -360,7 +360,7 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla
360360
substitutionMap={autocompleteSubstitutions}
361361
ref={textInputRef}
362362
/>
363-
const shouldShowSearchList = areOptionsInitialized && isRecentSearchesDataLoaded
363+
{shouldShowSearchList && (
364364
<SearchAutocompleteList
365365
autocompleteQueryValue={autocompleteQueryValue || textInputValue}
366366
handleSearch={searchInServer}

0 commit comments

Comments
 (0)