mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 02:14:23 +00:00
Fixed Empty Spaces Passed in the Input Field
This commit is contained in:
1 parent
b7d569de98
commit
e95e084956
1 file changed
+2
@@ -61,6 +61,8 @@ export default function Conversation() {
|
||||
};
|
||||
|
||||
const handleQuestion = (question: string) => {
|
||||
question = question.trim();
|
||||
if (question === '') return;
|
||||
dispatch(addQuery({ prompt: question }));
|
||||
dispatch(fetchAnswer({ question }));
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user