From 5f673691b1f2fddd77ce0aab6cc05d4310359ed3 Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sat, 4 Mar 2023 21:37:11 +0800 Subject: [PATCH] fix: update chat title --- src/components/Menu/ChatHistoryList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Menu/ChatHistoryList.tsx b/src/components/Menu/ChatHistoryList.tsx index b300914..ce65250 100644 --- a/src/components/Menu/ChatHistoryList.tsx +++ b/src/components/Menu/ChatHistoryList.tsx @@ -86,6 +86,7 @@ const ChatHistory = ({ const updatedChats = JSON.parse(JSON.stringify(chats)); if (isEdit) { updatedChats[chatIndex].title = _title; + setChats(updatedChats); setIsEdit(false); } else if (isDelete) { updatedChats.splice(chatIndex, 1);