fix(core,edges): use nullish check to fallback to default center

This commit is contained in:
braks
2024-02-28 10:54:59 +01:00
committed by Braks
parent c0e2b96aa8
commit a8c09a90da
@@ -85,8 +85,8 @@ function getPoints({
// opposite handle positions, default case
if (sourceDir[dirAccessor] * targetDir[dirAccessor] === -1) {
centerX = center.x || defaultCenterX
centerY = center.y || defaultCenterY
centerX = center.x ?? defaultCenterX
centerY = center.y ?? defaultCenterY
// --->
// |
// >---