fix: reset chat state when creating new dialog (#10380)

### What problem does this PR solve?
issue:
[Question]: New Chat Creation Renames Edited Chat Instead of Creating a
New One #10373
change:
reset chat state when creating new dialog

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
buua436
2025-09-30 16:05:38 +08:00
committed by GitHub
parent 7c620bdc69
commit aec8c15e7e

View File

@ -68,6 +68,8 @@ export const useRenameChat = () => {
(record?: IDialog) => {
if (record) {
setChat(record);
} else {
setChat({} as IDialog);
}
showChatRenameModal();
},