Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion src/search/components/input/AskAIResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ export function AskAIResults({
<ActionList.Item
sx={{
marginLeft: '0px',
paddingLeft: '0px',
}}
key={`reference-${index}`}
id={`search-option-reference-${index + referencesIndexOffset}`}
Expand Down
8 changes: 3 additions & 5 deletions src/search/components/input/SearchOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,9 @@ export function SearchOverlay({

// When enter is pressed and no option is manually selected (-1), perform an AI search with the user input
if (selectedIndex === -1) {
if (isAskAIState) {
pressedOnContext = AI_SEARCH_CONTEXT
pressedGroupKey = ASK_AI_EVENT_GROUP
pressedGroupId = askAIEventGroupId
}
pressedOnContext = AI_SEARCH_CONTEXT
pressedGroupKey = ASK_AI_EVENT_GROUP
pressedGroupId = askAIEventGroupId
sendKeyboardEvent(event.key, pressedOnContext, pressedGroupId, pressedGroupKey)
aiSearchOptionOnSelect({ term: urlSearchInputQuery } as AutocompleteSearchHit)
}
Expand Down
Loading