Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function SearchPageHeaderInput({queryJSON, searchRouterListVisible, hideSearchRo
const [reports] = useOnyx(ONYXKEYS.COLLECTION.REPORT, {canBeMissing: true});
const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {canBeMissing: false});
const taxRates = useMemo(() => getAllTaxRates(), []);
const [userCardList] = useOnyx(ONYXKEYS.CARD_LIST, {canBeMissing: false});
const [userCardList] = useOnyx(ONYXKEYS.CARD_LIST, {canBeMissing: true});
const [workspaceCardFeeds] = useOnyx(ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST, {canBeMissing: true});
const allCards = useMemo(() => mergeCardListWithWorkspaceFeeds(workspaceCardFeeds ?? CONST.EMPTY_OBJECT, userCardList), [userCardList, workspaceCardFeeds]);
const cardFeedNamesWithType = useMemo(() => {
Expand Down Expand Up @@ -259,6 +259,7 @@ function SearchPageHeaderInput({queryJSON, searchRouterListVisible, hideSearchRo
<SearchInputSelectionWrapper
value={textInputValue}
substitutionMap={autocompleteSubstitutions}
selection={selection}
onSearchQueryChange={onSearchQueryChange}
isFullWidth
onSubmit={() => {
Expand Down Expand Up @@ -292,7 +293,7 @@ function SearchPageHeaderInput({queryJSON, searchRouterListVisible, hideSearchRo
autocompleteQueryValue={autocompleteQueryValue}
searchQueryItem={searchQueryItem}
onListItemPress={onListItemPress}
setTextQuery={setTextInputValue}
setTextQuery={setTextAndUpdateSelection}
updateAutocompleteSubstitutions={updateAutocompleteSubstitutions}
ref={listRef}
/>
Expand Down