diff --git a/src/store/utils.ts b/src/store/utils.ts index eb99b0c3..d30dfd4d 100644 --- a/src/store/utils.ts +++ b/src/store/utils.ts @@ -43,9 +43,12 @@ export function createNodeInternals(nodes: Node[], nodeInternals: NodeInternals) nodes.forEach((node) => { const z = isNumeric(node.zIndex) ? node.zIndex : node.dragging || node.selected ? 1000 : 0; + const currInternals = nodeInternals.get(node.id); const internals: Node = { - ...nodeInternals.get(node.id), + width: currInternals?.width, + height: currInternals?.height, + handleBounds: currInternals?.handleBounds, ...node, positionAbsolute: { x: node.position.x,