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));
|
const updatedChats = JSON.parse(JSON.stringify(chats));
|
||||||
if (isEdit) {
|
if (isEdit) {
|
||||||
updatedChats[chatIndex].title = _title;
|
updatedChats[chatIndex].title = _title;
|
||||||
|
setChats(updatedChats);
|
||||||
setIsEdit(false);
|
setIsEdit(false);
|
||||||
} else if (isDelete) {
|
} else if (isDelete) {
|
||||||
updatedChats.splice(chatIndex, 1);
|
updatedChats.splice(chatIndex, 1);
|
||||||
|
|
Loading…
Reference in a new issue