Skip to content

Commit a068c32

Browse files
authored
Merge pull request #37838 from github/repo-sync
Repo sync
2 parents dd36c25 + 8ec6fea commit a068c32

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/search/components/input/AskAIResults.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ export function AskAIResults({
400400
<ActionList.Item
401401
sx={{
402402
marginLeft: '0px',
403-
paddingLeft: '0px',
404403
}}
405404
key={`reference-${index}`}
406405
id={`search-option-reference-${index + referencesIndexOffset}`}

src/search/components/input/SearchOverlay.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,9 @@ export function SearchOverlay({
473473

474474
// When enter is pressed and no option is manually selected (-1), perform an AI search with the user input
475475
if (selectedIndex === -1) {
476-
if (isAskAIState) {
477-
pressedOnContext = AI_SEARCH_CONTEXT
478-
pressedGroupKey = ASK_AI_EVENT_GROUP
479-
pressedGroupId = askAIEventGroupId
480-
}
476+
pressedOnContext = AI_SEARCH_CONTEXT
477+
pressedGroupKey = ASK_AI_EVENT_GROUP
478+
pressedGroupId = askAIEventGroupId
481479
sendKeyboardEvent(event.key, pressedOnContext, pressedGroupId, pressedGroupKey)
482480
aiSearchOptionOnSelect({ term: urlSearchInputQuery } as AutocompleteSearchHit)
483481
}

0 commit comments

Comments
 (0)