From f12f7e4b50ae7c947757be7bd2708d738603482d Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Fri, 11 Apr 2025 10:24:02 +0200 Subject: [PATCH] Fix sentry#6530117915 --- packages/element/src/elbowArrow.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/element/src/elbowArrow.ts b/packages/element/src/elbowArrow.ts index a70e265bc6..503d2f02fd 100644 --- a/packages/element/src/elbowArrow.ts +++ b/packages/element/src/elbowArrow.ts @@ -742,6 +742,7 @@ const handleEndpointDrag = ( // Calculate the moving second point connection and add the start point { + startIsSpecial = arrow.startIsSpecial && globalUpdatedPoints.length > 2; const secondPoint = globalUpdatedPoints[startIsSpecial ? 2 : 1]; const thirdPoint = globalUpdatedPoints[startIsSpecial ? 3 : 2]; const startIsHorizontal = headingIsHorizontal(startHeading); @@ -802,6 +803,7 @@ const handleEndpointDrag = ( // Calculate the moving second to last point connection { + endIsSpecial = arrow.endIsSpecial && globalUpdatedPoints.length > 2; const secondToLastPoint = globalUpdatedPoints[globalUpdatedPoints.length - (endIsSpecial ? 3 : 2)]; const thirdToLastPoint =