瀏覽代碼

fix: loop and interation node not showing tracing entry in chatflow (#17500)

tags/1.2.0
GeorgeCaoJ 6 月之前
父節點
當前提交
0998b01321
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增9 行删除
  1. 0
    9
      web/app/components/workflow/panel/debug-and-preview/hooks.ts

+ 0
- 9
web/app/components/workflow/panel/debug-and-preview/hooks.ts 查看文件

@@ -413,9 +413,6 @@ export const useChat = (
}
},
onNodeStarted: ({ data }) => {
if (data.iteration_id || data.loop_id)
return

responseItem.workflowProcess!.tracing!.push({
...data,
status: NodeRunningStatus.Running,
@@ -428,9 +425,6 @@ export const useChat = (
})
},
onNodeRetry: ({ data }) => {
if (data.iteration_id || data.loop_id)
return

responseItem.workflowProcess!.tracing!.push(data)

updateCurrentQAOnTree({
@@ -441,9 +435,6 @@ export const useChat = (
})
},
onNodeFinished: ({ data }) => {
if (data.iteration_id || data.loop_id)
return

const currentTracingIndex = responseItem.workflowProcess!.tracing!.findIndex(item => item.id === data.id)
if (currentTracingIndex > -1) {
responseItem.workflowProcess!.tracing[currentTracingIndex] = {

Loading…
取消
儲存