From c089767f56849d9b122d4990531b2a02ee415fb7 Mon Sep 17 00:00:00 2001 From: Jeff Phillips Date: Wed, 15 May 2024 14:14:15 -0400 Subject: [PATCH] fix(target arrow): Correctly determine incoming point for target connectors (#192) --- .../src/components/edges/terminals/DefaultConnectorTerminal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/module/src/components/edges/terminals/DefaultConnectorTerminal.tsx b/packages/module/src/components/edges/terminals/DefaultConnectorTerminal.tsx index 8fecc9d4..88bfb431 100644 --- a/packages/module/src/components/edges/terminals/DefaultConnectorTerminal.tsx +++ b/packages/module/src/components/edges/terminals/DefaultConnectorTerminal.tsx @@ -60,7 +60,7 @@ const DefaultConnectorTerminal: React.FunctionComponent } const bendPoints = edge.getBendpoints(); const defaultStartPoint = isTarget - ? edge.getBendpoints[bendPoints.length - 1] || edge.getStartPoint() + ? bendPoints[bendPoints.length - 1] || edge.getStartPoint() : bendPoints[0] || edge.getEndPoint(); const defaultEndPoint = isTarget ? edge.getEndPoint() : edge.getStartPoint(); const classes = css(styles.topologyEdge, className, StatusModifier[status]);