mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-18 19:46:44 +08:00
### What problem does this PR solve? Feat: Exclude operator_permission field from renaming chat fields #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -48,7 +48,10 @@ export const useRenameChat = () => {
|
||||
const nextChat = {
|
||||
...(isEmpty(chat)
|
||||
? InitialData
|
||||
: { ...omit(chat, 'nickname', 'tenant_avatar'), dialog_id: chat.id }),
|
||||
: {
|
||||
...omit(chat, 'nickname', 'tenant_avatar', 'operator_permission'),
|
||||
dialog_id: chat.id,
|
||||
}),
|
||||
name,
|
||||
};
|
||||
const ret = await setDialog(nextChat);
|
||||
|
||||
Reference in New Issue
Block a user