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

This commit is contained in:
Hash Brown 2025-02-08 14:38:10 +08:00 committed by GitHub
parent cf36745770
commit 78708eb5d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)