From 9a30a8100d73b973aaddeb0ea981eea09f7618fc Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 23 Feb 2023 18:16:28 -0300 Subject: [PATCH] fix message v5 --- space_flow/src/components/chatComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/space_flow/src/components/chatComponent/index.tsx b/space_flow/src/components/chatComponent/index.tsx index ca5ce7701..2d3765605 100644 --- a/space_flow/src/components/chatComponent/index.tsx +++ b/space_flow/src/components/chatComponent/index.tsx @@ -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.']}) }