diff --git a/packages/excalidraw/components/TTDDialog/Chat/ChatInterface.tsx b/packages/excalidraw/components/TTDDialog/Chat/ChatInterface.tsx index b26aa9bc70..312c49ac9c 100644 --- a/packages/excalidraw/components/TTDDialog/Chat/ChatInterface.tsx +++ b/packages/excalidraw/components/TTDDialog/Chat/ChatInterface.tsx @@ -90,7 +90,9 @@ export const ChatInterface = ({ const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === KEYS.ENTER && !event.shiftKey) { event.preventDefault(); - handleSubmit(); + if (!isGenerating) { + handleSubmit(); + } } }; @@ -143,7 +145,14 @@ export const ChatInterface = ({
-
+