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,
}
);
}

View file

@ -136,18 +136,18 @@ export type TooltipComponentType = {
children: ReactElement;
title: string | ReactElement;
placement?:
| "bottom-end"
| "bottom-start"
| "bottom"
| "left-end"
| "left-start"
| "left"
| "right-end"
| "right-start"
| "right"
| "top-end"
| "top-start"
| "top";
| "bottom-end"
| "bottom-start"
| "bottom"
| "left-end"
| "left-start"
| "left"
| "right-end"
| "right-start"
| "right"
| "top-end"
| "top-start"
| "top";
};
export type ProgressBarType = {