parent
cf36745770
commit
78708eb5d5
1 changed files with 6 additions and 7 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue