Skip to content

Commit 01dfa83

Browse files
committed
fixes from PR
1 parent 9c9f828 commit 01dfa83

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

src/components/Search/SearchAutocompleteList.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,7 @@ function SearchAutocompleteList(
199199
const cardFeedNamesWithType = useMemo(() => {
200200
return getCardFeedNamesWithType({workspaceCardFeeds, translate});
201201
}, [translate, workspaceCardFeeds]);
202-
const feedAutoCompleteList = useMemo(
203-
() =>
204-
Object.entries(cardFeedNamesWithType).map(([cardFeedKey, cardFeedName]) => ({
205-
cardFeedKey,
206-
cardFeedName,
207-
})),
208-
[cardFeedNamesWithType],
209-
);
202+
const feedAutoCompleteList = useMemo(() => Object.entries(cardFeedNamesWithType).map(([cardFeedKey, cardFeedName]) => ({cardFeedKey, cardFeedName})), [cardFeedNamesWithType]);
210203

211204
const getParticipantsAutocompleteList = useMemo(
212205
() =>
@@ -635,7 +628,7 @@ function SearchAutocompleteList(
635628
onArrowFocus={onArrowFocus}
636629
ref={ref}
637630
initiallyFocusedOptionKey={!shouldUseNarrowLayout ? styledRecentReports.at(0)?.keyForList : undefined}
638-
shouldScrollToFocusedIndex={isInitialRender}
631+
shouldScrollToFocusedIndex={!isInitialRender}
639632
shouldSubscribeToArrowKeyEvents={shouldSubscribeToArrowKeyEvents}
640633
disableKeyboardShortcuts={!shouldSubscribeToArrowKeyEvents}
641634
/>

0 commit comments

Comments
 (0)