From 4c698a6a3307f0d610784b9309b4778d88ef63eb Mon Sep 17 00:00:00 2001 From: hzhufa Date: Thu, 8 May 2025 08:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=E5=9C=A8=E6=B5=81=E7=A8=8B=E9=85=8D=E7=BD=AE=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=B5=81=E7=A8=8B=E6=AF=94?= =?UTF-8?q?=E8=BE=83=E5=A4=8D=E6=9D=82=EF=BC=8C=E5=9C=A8=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E7=9A=84=E8=8A=82=E7=82=B9=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E4=BC=9A=E5=87=BA=E7=8E=B0=E9=83=A8=E5=88=86?= =?UTF-8?q?edges=E8=BF=9E=E7=BA=BF=E6=95=B0=E6=8D=AE=E5=85=B6=E5=AE=9E?= =?UTF-8?q?=E6=98=AF=E6=97=A0=E6=95=88=E7=9A=84=EF=BC=8C=E5=85=B6source?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E8=8A=82=E7=82=B9=E5=85=B6=E5=AE=9E?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=EF=BC=8C=E6=AD=A4=E6=97=B6=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=BF=9B=E8=A1=8C=E9=9D=9E=E7=A9=BA=E5=88=A4=E6=96=AD?= =?UTF-8?q?=EF=BC=8C=E5=90=A6=E5=88=99=E5=AF=B9undefined=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E5=8F=96data=E6=95=B0=E6=8D=AE=E4=BC=9A=E6=8A=A5TypeError?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E8=BF=9B=E8=80=8C=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA=E7=9B=B4=E6=8E=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hooks/use-workflow-run-event/use-workflow-node-started.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts b/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts index b537ccbb27..374822e9c9 100644 --- a/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts +++ b/web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts @@ -67,6 +67,9 @@ export const useWorkflowNodeStarted = () => { incomeEdges.forEach((edge) => { const incomeNode = nodes.find(node => node.id === edge.source)! + if (!incomeNode || !('data' in incomeNode)) { + return + } if ( (!incomeNode.data._runningBranchId && edge.sourceHandle === 'source') || (incomeNode.data._runningBranchId && edge.sourceHandle === incomeNode.data._runningBranchId)