소스 검색

fix: merge conflict between #11301 and #11885 (#13391)

Hash Brown 8 달 전
부모
커밋
78708eb5d5
1개의 변경된 파일6개의 추가작업 그리고 7개의 파일을 삭제
  1. 6 7
      web/app/components/workflow/panel/debug-and-preview/hooks.ts

+ 6 - 7
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)