chore(nodes): check if node ref exists before updating dimensions

This commit is contained in:
bcakmakoglu
2022-06-26 18:10:59 +02:00
committed by Braks
parent 0c5473ae14
commit ae5d5b4637
@@ -72,7 +72,7 @@ const updatePosition = (nodePos: XYZPosition, parentPos?: XYZPosition) => {
}
const updateInternals = () => {
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
if (nodeElement.value) updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
updatePosition(
{