From d3c8667db289c0f0640f0f37f99e03d4af6f8065 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 23 Feb 2023 18:15:33 -0300 Subject: [PATCH] message v4 --- 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 26b2e13b4..ca5ce7701 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((JSON.parse(r.data))['result'], false);}); + sendAll({...reactFlowInstance.toObject(),message}).then((r) => {console.log(r); addChatHistory((r.data)['result'], false);}); } else { setErrorData({title: 'Error sending message', list:['Chat nodes are missing.']}) }