From 6dd91414bea8ae87e802284aee586d957c27835c Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Thu, 12 Sep 2024 19:57:23 -0700 Subject: [PATCH] delete chat session immediately --- web/src/app/chat/ChatPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index 40e4368a5..54bf75817 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -1795,7 +1795,7 @@ export function ChatPage({ const responseJson = await response.json(); setPopup({ message: responseJson.detail, type: "error" }); } - router.refresh(); + refreshChatSessions(); }} /> )}