fix: use global nodeExtent if node.extent is undefined

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 39c8f60818
commit 8e6e85a007
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export const createPositionChange = (
if (diff) {
const nextPosition = { x: node.position.x + diff.x, y: node.position.y + diff.y }
let currentExtent = node.extent === 'parent' ? nodeExtent : node.extent
let currentExtent = node.extent === 'parent' || typeof node.extent === 'undefined' ? nodeExtent : node.extent
if (node.extent === 'parent' && parent && node.dimensions.width && node.dimensions.height) {
currentExtent =