mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 08:49:02 +08:00
### What problem does this PR solve? Fix: Rename chat name, missing field 'avatar' #4125 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
bc3288d390
commit
61790ebe15
@ -340,6 +340,7 @@ export const useUpdateNextConversation = () => {
|
|||||||
});
|
});
|
||||||
if (data.code === 0) {
|
if (data.code === 0) {
|
||||||
queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
|
queryClient.invalidateQueries({ queryKey: ['fetchConversationList'] });
|
||||||
|
message.success(i18n.t(`message.modified`));
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
|
@ -535,7 +535,6 @@ export const useRenameConversation = () => {
|
|||||||
const onConversationRenameOk = useCallback(
|
const onConversationRenameOk = useCallback(
|
||||||
async (name: string) => {
|
async (name: string) => {
|
||||||
const ret = await updateConversation({
|
const ret = await updateConversation({
|
||||||
...conversation,
|
|
||||||
conversation_id: conversation.id,
|
conversation_id: conversation.id,
|
||||||
name,
|
name,
|
||||||
is_new: false,
|
is_new: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user