Browse Source

Bug fix: Invalid edge connection data causes the page to crash. (#19369)

Co-authored-by: hzhufa <hzhufa@linewell.com>
tags/1.4.0
hzhufa 5 months ago
parent
commit
163a76eb6e
No account linked to committer's email address

+ 3
- 0
web/app/components/workflow/hooks/use-workflow-run-event/use-workflow-node-started.ts View File

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

Loading…
Cancel
Save