retrievin key from backend

This commit is contained in:
anovazzi1 2023-09-29 10:05:21 -03:00 • committed by anovazzi1
commit 1b5b36a96d
2 changed files with 14 additions and 15 deletions

View file

@ -220,7 +220,6 @@ export default function FormModal({
files?: Array<any>;
}) => {
if (chatItem.message) {
let key = Object.keys(chatItem.message)[0];
newChatHistory.push(
chatItem.files
? {
@ -229,14 +228,14 @@ export default function FormModal({
template: chatItem.template,
thought: chatItem.intermediate_steps,
files: chatItem.files,
chatKey: key,
chatKey: chatItem.chatKey,
}
: {
isSend: !chatItem.is_bot,
message: chatItem.message,
template: chatItem.template,
thought: chatItem.intermediate_steps,
chatKey: key,
chatKey: chatItem.chatKey,
}
);
}