chore(nodes): check if node ref exists before updating dimensions
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user