From f6ebb20ff1b9213bbb602a0117c0b35888ab5634 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Tue, 30 Jan 2024 00:24:05 +0530 Subject: [PATCH] Update QueryCopilotPromptbar.tsx --- src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx index 97e1dbf78..e2e079d02 100644 --- a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx +++ b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx @@ -325,18 +325,15 @@ export const QueryCopilotPromptbar: React.FC = ({ const handlekeydown: React.KeyboardEventHandler = (e) => { const { key } = e; - let nexIndexCount = 0; + const nexIndexCount = 0; if (key === "ArrowDown") { nexIndexCount = (focusedindex + 1) % suggestionsnhistory.length; - console.log(nexIndexCount); } if (key === "ArrowUp") { nexIndexCount = (focusedindex + suggestionsnhistory.length - 1) % suggestionsnhistory.length; - console.log(nexIndexCount); } if (key === "Enter") { e.preventDefault(); - console.log(focusedindex); handleSelection(focusedindex); } setFocusedindex(nexIndexCount); @@ -358,7 +355,6 @@ export const QueryCopilotPromptbar: React.FC = ({ const handlepromptset = (prompttext: string) => { inputEdited.current = true; setUserPrompt(prompttext); - console.log("prompt", userPrompt); }; return (