diff --git a/plugins/genai/frontend/src/components/ChatInputComponent/ChatInputComponent.tsx b/plugins/genai/frontend/src/components/ChatInputComponent/ChatInputComponent.tsx index 83df3c67..ace698b6 100644 --- a/plugins/genai/frontend/src/components/ChatInputComponent/ChatInputComponent.tsx +++ b/plugins/genai/frontend/src/components/ChatInputComponent/ChatInputComponent.tsx @@ -69,7 +69,7 @@ export const ChatInputComponent = ({ const checkKeyPress = (evt: React.KeyboardEvent) => { if (evt.code === 'Enter') { - if (!evt.shiftKey) { + if (!evt.shiftKey && message.trim()) { processMessage(); evt.preventDefault(); } @@ -102,7 +102,7 @@ export const ChatInputComponent = ({