From 46665a2f90a8cab95402f5639cd1f631996fabce Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 6 Apr 2021 18:52:53 +0200 Subject: [PATCH] fix(edges): handle mixed flows --- src/components/Edges/SmoothStepEdge.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Edges/SmoothStepEdge.tsx b/src/components/Edges/SmoothStepEdge.tsx index b8317820..82f70bdd 100644 --- a/src/components/Edges/SmoothStepEdge.tsx +++ b/src/components/Edges/SmoothStepEdge.tsx @@ -83,8 +83,8 @@ export function getSmoothStepPath({ } else { firstCornerPath = sourceY <= targetY - ? bottomLeftCorner(targetX, sourceY, cornerSize) - : topRightCorner(targetX, sourceY, cornerSize); + ? leftTopCorner(targetX, sourceY, cornerSize) + : leftBottomCorner(targetX, sourceY, cornerSize); } secondCornerPath = ''; } else if (!leftAndRight.includes(sourcePosition) && leftAndRight.includes(targetPosition)) {