diff --git a/packages/client/src/workflow/nodes/parallel.tsx b/packages/client/src/workflow/nodes/parallel.tsx index a85bdd21f..11211cab6 100644 --- a/packages/client/src/workflow/nodes/parallel.tsx +++ b/packages/client/src/workflow/nodes/parallel.tsx @@ -43,6 +43,7 @@ export default { const [branchCount, setBranchCount] = useState(Math.max(2, branches.length)); const tempBranches = Array(Math.max(0, branchCount - branches.length)).fill(null); + const lastBranchHead = branches[branches.length - 1]; return ( @@ -51,11 +52,11 @@ export default { {branches.map((branch) => ( ))} - {tempBranches.map((branch, i) => ( + {tempBranches.map((_, i) => ( 1 ? (