Skip to content

Commit 41f3d50

Browse files
authored
fix(deployed-chat): prevent multiple simultaneous messages (#1893)
1 parent fc162ab commit 41f3d50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/sim/app/chat/components/input/input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export const ChatInput: React.FC<{
167167
}
168168

169169
const handleSubmit = () => {
170+
if (isStreaming) return
170171
if (!inputValue.trim() && attachedFiles.length === 0) return
171172
onSubmit?.(inputValue.trim(), false, attachedFiles) // false = not voice input
172173
setInputValue('')

0 commit comments

Comments
 (0)