fix message

This commit is contained in:
Lucas Oliveira 2023-02-23 18:09:53 -03:00
commit e65012982d

View file

@ -108,7 +108,7 @@ export default function Chat({ reactFlowInstance }) {
let message = chatValue;
setChatValue("");
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 {
setErrorData({title: 'Error sending message', list:['Chat nodes are missing.']})
}