From 8c4a1db4722550dc0a50e3ce25a5230885dc3cb8 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 28 Sep 2023 11:55:04 -0300 Subject: [PATCH] Fixed websocket not updating --- src/frontend/src/modals/formModal/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/modals/formModal/index.tsx b/src/frontend/src/modals/formModal/index.tsx index 07e63ac11..0952cd2f0 100644 --- a/src/frontend/src/modals/formModal/index.tsx +++ b/src/frontend/src/modals/formModal/index.tsx @@ -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((_) => {