diff --git a/src/components/Edges/SmoothStepEdge.tsx b/src/components/Edges/SmoothStepEdge.tsx index 9062cb00..b8317820 100644 --- a/src/components/Edges/SmoothStepEdge.tsx +++ b/src/components/Edges/SmoothStepEdge.tsx @@ -83,8 +83,8 @@ export function getSmoothStepPath({ } else { firstCornerPath = sourceY <= targetY - ? bottomRightCorner(sourceX, targetY, cornerSize) - : topRightCorner(sourceX, targetY, cornerSize); + ? bottomLeftCorner(targetX, sourceY, cornerSize) + : topRightCorner(targetX, sourceY, cornerSize); } secondCornerPath = ''; } else if (!leftAndRight.includes(sourcePosition) && leftAndRight.includes(targetPosition)) {