fix message
This commit is contained in:
parent
63738eeffc
commit
e65012982d
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ export default function Chat({ reactFlowInstance }) {
|
||||||
let message = chatValue;
|
let message = chatValue;
|
||||||
setChatValue("");
|
setChatValue("");
|
||||||
addChatHistory(message, true);
|
addChatHistory(message, true);
|
||||||
sendAll({...reactFlowInstance.toObject(),message}).then((r) => {addChatHistory(r.data.messsage, false);});
|
sendAll({...reactFlowInstance.toObject(),message}).then((r) => {addChatHistory(r.data.result, false);});
|
||||||
} else {
|
} else {
|
||||||
setErrorData({title: 'Error sending message', list:['Chat nodes are missing.']})
|
setErrorData({title: 'Error sending message', list:['Chat nodes are missing.']})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue