Fixed websocket not updating
This commit is contained in:
parent
d8eabdb7b9
commit
8c4a1db472
1 changed files with 1 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ export default function FormModal({
|
|||
newChat[newChat.length - 1].files = files;
|
||||
}
|
||||
if (prompt) {
|
||||
newChat[newChat.length - 1].template = prompt;
|
||||
newChat[newChat.length - 2].template = prompt;
|
||||
}
|
||||
return newChat;
|
||||
});
|
||||
|
|
@ -205,7 +205,6 @@ export default function FormModal({
|
|||
}
|
||||
|
||||
function handleWsMessage(data: any) {
|
||||
console.log(data);
|
||||
if (Array.isArray(data) && data.length > 0) {
|
||||
//set chat history
|
||||
setChatHistory((_) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue