|
|
@@ -866,7 +866,7 @@ function _Chat() {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- const doSubmit = (userInput: string, fileList?: any[]) => {
|
|
|
+ const doSubmit = (userInput: string) => {
|
|
|
if (userInput.trim() === "") return;
|
|
|
const matchCommand = chatCommands.match(userInput);
|
|
|
if (matchCommand.matched) {
|
|
|
@@ -876,7 +876,7 @@ function _Chat() {
|
|
|
return;
|
|
|
}
|
|
|
setIsLoading(true);
|
|
|
- chatStore.onUserInput(fileList || [], userInput, attachImages).then(() => setIsLoading(false));
|
|
|
+ chatStore.onUserInput(fileList, userInput, attachImages).then(() => setIsLoading(false));
|
|
|
setAttachImages([]);
|
|
|
localStorage.setItem(LAST_INPUT_KEY, userInput);
|
|
|
setUserInput("");
|
|
|
@@ -1615,7 +1615,7 @@ function _Chat() {
|
|
|
style={{
|
|
|
width: 35, height: 35, borderRadius: '50%', background: '#4357d2', display: 'flex', justifyContent: 'center', alignItems: 'center', cursor: 'pointer'
|
|
|
}}
|
|
|
- onClick={() => doSubmit(userInput, fileList)}
|
|
|
+ onClick={() => doSubmit(userInput)}
|
|
|
>
|
|
|
<div style={{ transform: 'rotate(-45deg)', padding: '0px 0px 3px 5px' }}>
|
|
|
<SendOutlined style={{ color: '#FFFFFF' }} />
|