mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-01 10:48:37 +08:00
fix delete log annotation (#4201)
Co-authored-by: langyong <langyong@lixiang.com>
This commit is contained in:
parent
a79941df22
commit
ca5081e327
@ -260,11 +260,7 @@ const Chat: FC<IChatProps> = ({
|
|||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
content: item.content,
|
content: item.content,
|
||||||
annotation: {
|
annotation: undefined,
|
||||||
...(item.annotation || {}),
|
|
||||||
id: '',
|
|
||||||
logAnnotation: undefined, // remove log
|
|
||||||
} as Annotation,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return item
|
return item
|
||||||
|
@ -137,8 +137,8 @@ const getFormattedChatList = (messages: ChatMessage[], conversationId: string, t
|
|||||||
|
|
||||||
if (item.annotation) {
|
if (item.annotation) {
|
||||||
return {
|
return {
|
||||||
id: '',
|
id: item.annotation.id,
|
||||||
authorName: '',
|
authorName: item.annotation.account.name,
|
||||||
logAnnotation: item.annotation,
|
logAnnotation: item.annotation,
|
||||||
created_at: 0,
|
created_at: 0,
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@ export type ModelConfigDetail = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type LogAnnotation = {
|
export type LogAnnotation = {
|
||||||
|
id: string
|
||||||
content: string
|
content: string
|
||||||
account: {
|
account: {
|
||||||
id: string
|
id: string
|
||||||
|
Loading…
Reference in New Issue
Block a user