Skip to content

Commit

Permalink
fix(core): push into changes arr instead of using index (#1569)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
bcakmakoglu authored Aug 5, 2024
1 parent ab86033 commit f6b394f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-mayflies-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---

Push into dimensions changes array instead of using index access.
4 changes: 2 additions & 2 deletions packages/core/src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
})
}
}
}
Expand Down

0 comments on commit f6b394f

Please sign in to comment.