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