From e5eb1a04062b30d97bc94f3f908e2ec44cbff82e Mon Sep 17 00:00:00 2001 From: Jozef Marko Date: Wed, 25 Sep 2024 14:03:10 +0200 Subject: [PATCH] Update packages/dmn-editor/src/diagram/edges/usePotentialWaypointControls.ts Co-authored-by: Tiago Bento <1584568+tiagobento@users.noreply.github.com> --- .../src/diagram/edges/usePotentialWaypointControls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dmn-editor/src/diagram/edges/usePotentialWaypointControls.ts b/packages/dmn-editor/src/diagram/edges/usePotentialWaypointControls.ts index b3f559b0305..b414c732fd3 100644 --- a/packages/dmn-editor/src/diagram/edges/usePotentialWaypointControls.ts +++ b/packages/dmn-editor/src/diagram/edges/usePotentialWaypointControls.ts @@ -99,9 +99,9 @@ export function usePotentialWaypointControls( ); return; } + const edgeSourceBounds = edge.data?.dmnShapeSource["dc:Bounds"]; const edgeTargetBounds = edge.data?.dmnShapeTarget["dc:Bounds"]; - if (edgeSourceBounds === undefined || edgeTargetBounds === undefined) { console.debug( `DMN DIAGRAM: We can not add DMNEdge for '${edgeId}' edge into diagram. There are missing data edgeSourceBounds: ${edgeSourceBounds}, edgeTargetBounds: ${edgeTargetBounds}`