Fix message type conversion in newChatView component
This commit is contained in:
parent
52494fbf74
commit
de854325ed
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ export default function newChatView(): JSX.Element {
|
||||||
.artifacts as ChatOutputType;
|
.artifacts as ChatOutputType;
|
||||||
console.log(output.data.artifacts);
|
console.log(output.data.artifacts);
|
||||||
const is_ai = sender === "Machine";
|
const is_ai = sender === "Machine";
|
||||||
return { isSend: !is_ai, message, sender_name };
|
return { isSend: !is_ai, message: String(message), sender_name };
|
||||||
});
|
});
|
||||||
setChatHistory(chatMessages);
|
setChatHistory(chatMessages);
|
||||||
}, [flowPool]);
|
}, [flowPool]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue