Skip to content

Commit a8c09a9

Browse files
committed
fix(core,edges): use nullish check to fallback to default center
1 parent c0e2b96 commit a8c09a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/components/Edges/utils/smoothstep.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ function getPoints({
8585

8686
// opposite handle positions, default case
8787
if (sourceDir[dirAccessor] * targetDir[dirAccessor] === -1) {
88-
centerX = center.x || defaultCenterX
89-
centerY = center.y || defaultCenterY
88+
centerX = center.x ?? defaultCenterX
89+
centerY = center.y ?? defaultCenterY
9090
// --->
9191
// |
9292
// >---

0 commit comments

Comments
 (0)