mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 21:34:00 +01:00
fix: update chat title
This commit is contained in:
parent
8f7a859691
commit
5f673691b1
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue