fix(edges): connection line not showing up when no edges are defined

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent d730869443
commit 9abd768bce
7 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ export default (state: FlowState): FlowGetters => {
e.targetNode.dimensions.width &&
e.targetNode.dimensions.height &&
isEdgeVisible({
sourcePos: e.sourceNode.position || { x: 0, y: 0 },
targetPos: e.targetNode.position || { x: 0, y: 0 },
sourcePos: e.sourceNode.computedPosition || { x: 0, y: 0 },
targetPos: e.targetNode.computedPosition || { x: 0, y: 0 },
sourceWidth: e.sourceNode.dimensions.width,
sourceHeight: e.sourceNode.dimensions.height,
targetWidth: e.targetNode.dimensions.width,