From de854325ed70e978830ba53ad68721dc946987f2 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 7 Feb 2024 18:14:31 -0300 Subject: [PATCH] Fix message type conversion in newChatView component --- src/frontend/src/components/newChatView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/newChatView/index.tsx b/src/frontend/src/components/newChatView/index.tsx index e45c8a71e..1a3293f12 100644 --- a/src/frontend/src/components/newChatView/index.tsx +++ b/src/frontend/src/components/newChatView/index.tsx @@ -57,7 +57,7 @@ export default function newChatView(): JSX.Element { .artifacts as ChatOutputType; console.log(output.data.artifacts); const is_ai = sender === "Machine"; - return { isSend: !is_ai, message, sender_name }; + return { isSend: !is_ai, message: String(message), sender_name }; }); setChatHistory(chatMessages); }, [flowPool]);