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