Skip to content

Commit

Permalink
fix: merge conflict between #11301 and #11885
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzuodong committed Feb 8, 2025
1 parent 982bca5 commit 40f45f6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions web/app/components/workflow/panel/debug-and-preview/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40f45f6

Please sign in to comment.