Skip to content

Commit ba0b9cf

Browse files
committed
fix: Advanced Layout Canvas Editing - Special Editing Method will connect the exit of the current node to the exit of subsequent nodes when adding them
1 parent 3d6bcb9 commit ba0b9cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/workflow/common/NodeContainer.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,13 @@ function clickNodes(item: any) {
297297
x: anchorData.value?.x + width / 2 + 200,
298298
y: anchorData.value?.y - item.height
299299
})
300+
console.log(nodeModel)
300301
props.nodeModel.graphModel.addEdge({
301302
type: 'app-edge',
302303
sourceNodeId: props.nodeModel.id,
303304
sourceAnchorId: anchorData.value?.id,
304-
targetNodeId: nodeModel.id
305+
targetNodeId: nodeModel.id,
306+
targetAnchorId: nodeModel.id + '_left'
305307
})
306308
307309
closeNodeMenu()

0 commit comments

Comments
 (0)