Skip to content

Commit b8b6052

Browse files
authored
handle first chat message send correctly (#319)
1 parent e5c4805 commit b8b6052

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

frontend/app/components/ChatWindow.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,8 @@ export function ChatWindow() {
405405
type="submit"
406406
onClick={(e) => {
407407
e.preventDefault();
408-
if (currentThread == null) {
409-
return;
410-
}
411408

412-
if (isLoading) {
409+
if (currentThread != null && isLoading) {
413410
stopStream?.(currentThread.thread_id);
414411
} else {
415412
sendMessage();

0 commit comments

Comments
 (0)