mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -68,6 +68,8 @@ export const useRenameChat = () => {
|
||||
(record?: IDialog) => {
|
||||
if (record) {
|
||||
setChat(record);
|
||||
} else {
|
||||
setChat({} as IDialog);
|
||||
}
|
||||
showChatRenameModal();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user