mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 01:25:53 +08:00
fix(answer/operation): feedback status in the logs (#6716)
This commit is contained in:
parent
c6996a48a4
commit
427f48be6b
@ -53,10 +53,11 @@ const Operation: FC<OperationProps> = ({
|
|||||||
content: messageContent,
|
content: messageContent,
|
||||||
annotation,
|
annotation,
|
||||||
feedback,
|
feedback,
|
||||||
|
adminFeedback,
|
||||||
agent_thoughts,
|
agent_thoughts,
|
||||||
} = item
|
} = item
|
||||||
const hasAnnotation = !!annotation?.id
|
const hasAnnotation = !!annotation?.id
|
||||||
const [localFeedback, setLocalFeedback] = useState(feedback)
|
const [localFeedback, setLocalFeedback] = useState(config?.supportAnnotation ? adminFeedback : feedback)
|
||||||
|
|
||||||
const content = useMemo(() => {
|
const content = useMemo(() => {
|
||||||
if (agent_thoughts?.length)
|
if (agent_thoughts?.length)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user