fix(core): push into changes arr instead of using index (#1569)

* fix(core): push into changes arr instead of using index

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2024-08-05 23:44:14 +02:00
parent ab86033660
commit afa88610ed
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Push into dimensions changes array instead of using index access.

View File

@@ -156,11 +156,11 @@ export function useActions(state: State, nodeLookup: ComputedRef<NodeLookup>, ed
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, nodeBounds, zoom)
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, nodeBounds, zoom)
changes[i] = {
changes.push({
id: node.id,
type: 'dimensions',
dimensions,
}
})
}
}
}