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
@@ -80,10 +80,10 @@ const onDragStop: DraggableEventListener = ({ event, data: { deltaX, deltaY } })
const xyzPos = computed(() => {
if (node.value.parentNode) {
return getXYZPos(node.value, {
return (node.value.computedPosition = getXYZPos(node.value, {
...node.value.position,
z: node.value.computedPosition.z,
})
}))
} else {
return node.value.computedPosition
}