Skip to content

Commit 83c5cdc

Browse files
fix: While the response is getting generated, question typed in chatbox is getting removed automatically.
fix: While the response is getting generated, question typed in chatbox is getting removed automatically.
2 parents 49a9fb0 + a7c3f37 commit 83c5cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/src/components/Chat/Chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const Chat: React.FC<ChatProps> = ({
211211
});
212212
dispatch({
213213
type: actionConstants.UPDATE_USER_MESSAGE,
214-
payload: "",
214+
payload: questionInputRef?.current?.value || "",
215215
});
216216
const abortController = new AbortController();
217217
abortFuncs.current.unshift(abortController);

0 commit comments

Comments
 (0)