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 else
responseItem.workflowProcess!.tracing[currentIndex].retryDetail = [data as NodeTracing] responseItem.workflowProcess!.tracing[currentIndex].retryDetail = [data as NodeTracing]
handleUpdateChatList(produce(chatListRef.current, (draft) => { updateCurrentQAOnTree({
const currentIndex = draft.findIndex(item => item.id === responseItem.id) placeholderQuestionId,
draft[currentIndex] = { questionItem,
...draft[currentIndex], responseItem,
...responseItem, parentId: params.parent_message_id,
} })
}))
}, },
onNodeFinished: ({ data }) => { onNodeFinished: ({ data }) => {
if (data.iteration_id) if (data.iteration_id)