From 78708eb5d539c824b19069784eb85980303cd3c0 Mon Sep 17 00:00:00 2001 From: Hash Brown Date: Sat, 8 Feb 2025 14:38:10 +0800 Subject: [PATCH] fix: merge conflict between #11301 and #11885 (#13391) --- .../workflow/panel/debug-and-preview/hooks.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/app/components/workflow/panel/debug-and-preview/hooks.ts b/web/app/components/workflow/panel/debug-and-preview/hooks.ts index d3e4e90327..a730d0a198 100644 --- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts +++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts @@ -425,13 +425,12 @@ export const useChat = ( else responseItem.workflowProcess!.tracing[currentIndex].retryDetail = [data as NodeTracing] - handleUpdateChatList(produce(chatListRef.current, (draft) => { - const currentIndex = draft.findIndex(item => item.id === responseItem.id) - draft[currentIndex] = { - ...draft[currentIndex], - ...responseItem, - } - })) + updateCurrentQAOnTree({ + placeholderQuestionId, + questionItem, + responseItem, + parentId: params.parent_message_id, + }) }, onNodeFinished: ({ data }) => { if (data.iteration_id)