diff --git a/sites/reactflow.dev/src/components/example-viewer/example-flows/MultiConnectionLine/ConnectionLine.jsx b/sites/reactflow.dev/src/components/example-viewer/example-flows/MultiConnectionLine/ConnectionLine.jsx index d481cb7ec..59b2801c5 100644 --- a/sites/reactflow.dev/src/components/example-viewer/example-flows/MultiConnectionLine/ConnectionLine.jsx +++ b/sites/reactflow.dev/src/components/example-viewer/example-flows/MultiConnectionLine/ConnectionLine.jsx @@ -5,25 +5,22 @@ export default ({ toX, toY }) => { const nodes = useNodes(); const selectedNodes = nodes.filter((node) => node.selected); - console.log(selectedNodes) - const handleBounds = selectedNodes.flatMap((userNode) => { const node = getInternalNode(userNode.id); - // we only want to draw a connection line from a source handle + // we only want to draw a connection line from a source handle if (!node.internals.handleBounds.source) { return []; } - + return node.internals.handleBounds.source?.map((bounds) => ({ id: node.id, positionAbsolute: node.internals.positionAbsolute, bounds, })); - }) + }); return handleBounds.map(({ id, positionAbsolute, bounds }) => { - console.log(id, positionAbsolute, bounds) const fromHandleX = bounds.x + bounds.width / 2; const fromHandleY = bounds.y + bounds.height / 2; const fromX = positionAbsolute.x + fromHandleX;