diff --git a/packages/editor-ui/src/plugins/N8nFlowchartType.js b/packages/editor-ui/src/plugins/N8nFlowchartType.js index 2534fd3fff..46f1431023 100644 --- a/packages/editor-ui/src/plugins/N8nFlowchartType.js +++ b/packages/editor-ui/src/plugins/N8nFlowchartType.js @@ -182,7 +182,7 @@ const diffX = paintInfo.endStubX - paintInfo.startStubX; const diffY = paintInfo.endStubY - paintInfo.startStubY; - const direction = diffY > 0 ? 1 : -1; + const direction = diffY >= 0 ? 1 : -1; var midx = paintInfo.startStubX + ((paintInfo.endStubX - paintInfo.startStubX) * midpoint), midy;