From f6e8fb012d089a616f212e125e412da5debab301 Mon Sep 17 00:00:00 2001 From: Sampath Date: Mon, 11 Dec 2023 23:54:28 +0530 Subject: [PATCH] lint changes done --- src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx index 75d26d4f4..faf9b5988 100644 --- a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx +++ b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx @@ -334,8 +334,9 @@ export const QueryCopilotPromptbar: React.FC = ({ const handleSelection = (selectedIndex: number) => { const selecteditem = suggestionsnhistory[selectedIndex]; - if (!selecteditem) return resetSearchComplete(); - else { + if (!selecteditem) { + return resetSearchComplete(); + } else { handlepromptset(selecteditem); } };