Skip to content

Commit afa8861

Browse files
committed
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 <[email protected]> * chore(changeset): add Signed-off-by: braks <[email protected]> --------- Signed-off-by: braks <[email protected]>
1 parent ab86033 commit afa8861

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/fluffy-mayflies-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-flow/core": patch
3+
---
4+
5+
Push into dimensions changes array instead of using index access.

packages/core/src/store/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ export function useActions(state: State, nodeLookup: ComputedRef<NodeLookup>, ed
156156
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, nodeBounds, zoom)
157157
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, nodeBounds, zoom)
158158

159-
changes[i] = {
159+
changes.push({
160160
id: node.id,
161161
type: 'dimensions',
162162
dimensions,
163-
}
163+
})
164164
}
165165
}
166166
}

0 commit comments

Comments
 (0)