Message received successfully
This commit is contained in:
parent
ba61a9533a
commit
51c788ea94
1 changed files with 3 additions and 3 deletions
|
|
@ -94,9 +94,9 @@ export default function Chat({ reactFlowInstance }) {
|
||||||
addChatHistory(message, true);
|
addChatHistory(message, true);
|
||||||
sendAll({
|
sendAll({
|
||||||
message,
|
message,
|
||||||
nodes: reactFlowInstance.getNodes(),
|
nodes: JSON.stringify(reactFlowInstance.getNodes()),
|
||||||
edges: reactFlowInstance.getEdges(),
|
edges: JSON.stringify(reactFlowInstance.getEdges()),
|
||||||
}).then((r) => {addChatHistory(r, false)});
|
}).then((r) => {addChatHistory(r.data.messsage, false)});
|
||||||
} else {
|
} else {
|
||||||
setErrorData({title: 'Error sending message', list:['There are required fields not filled yet.']})
|
setErrorData({title: 'Error sending message', list:['There are required fields not filled yet.']})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue