From 51c788ea9465b3dbde18f01cce70f6113a79985f Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 16 Feb 2023 15:16:50 -0300 Subject: [PATCH] Message received successfully --- space_flow/src/components/chatComponent/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/space_flow/src/components/chatComponent/index.tsx b/space_flow/src/components/chatComponent/index.tsx index 9a29d5e81..6fe087734 100644 --- a/space_flow/src/components/chatComponent/index.tsx +++ b/space_flow/src/components/chatComponent/index.tsx @@ -94,9 +94,9 @@ export default function Chat({ reactFlowInstance }) { addChatHistory(message, true); sendAll({ message, - nodes: reactFlowInstance.getNodes(), - edges: reactFlowInstance.getEdges(), - }).then((r) => {addChatHistory(r, false)}); + nodes: JSON.stringify(reactFlowInstance.getNodes()), + edges: JSON.stringify(reactFlowInstance.getEdges()), + }).then((r) => {addChatHistory(r.data.messsage, false)}); } else { setErrorData({title: 'Error sending message', list:['There are required fields not filled yet.']}) }