Skip to content

Commit ae5d5b4

Browse files
committed
chore(nodes): check if node ref exists before updating dimensions
1 parent 0c5473a commit ae5d5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-flow/src/components/Nodes/NodeWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const updatePosition = (nodePos: XYZPosition, parentPos?: XYZPosition) => {
7272
}
7373
7474
const updateInternals = () => {
75-
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
75+
if (nodeElement.value) updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
7676
7777
updatePosition(
7878
{

0 commit comments

Comments
 (0)