From 427f48be6b1f67c66c65cb5b3e9f17fc51230783 Mon Sep 17 00:00:00 2001 From: Kevin9703 <51311316+Kevin9703@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:36:36 +0800 Subject: [PATCH] fix(answer/operation): feedback status in the logs (#6716) --- web/app/components/base/chat/chat/answer/operation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/chat/chat/answer/operation.tsx b/web/app/components/base/chat/chat/answer/operation.tsx index 3d52477d0b..8ec5c0f3b2 100644 --- a/web/app/components/base/chat/chat/answer/operation.tsx +++ b/web/app/components/base/chat/chat/answer/operation.tsx @@ -53,10 +53,11 @@ const Operation: FC = ({ content: messageContent, annotation, feedback, + adminFeedback, agent_thoughts, } = item const hasAnnotation = !!annotation?.id - const [localFeedback, setLocalFeedback] = useState(feedback) + const [localFeedback, setLocalFeedback] = useState(config?.supportAnnotation ? adminFeedback : feedback) const content = useMemo(() => { if (agent_thoughts?.length)