diff --git a/.changeset/fluffy-mayflies-fetch.md b/.changeset/fluffy-mayflies-fetch.md new file mode 100644 index 00000000..149d18f3 --- /dev/null +++ b/.changeset/fluffy-mayflies-fetch.md @@ -0,0 +1,5 @@ +--- +"@vue-flow/core": patch +--- + +Push into dimensions changes array instead of using index access. diff --git a/packages/core/src/store/actions.ts b/packages/core/src/store/actions.ts index 89564847..61e0a1f5 100644 --- a/packages/core/src/store/actions.ts +++ b/packages/core/src/store/actions.ts @@ -156,11 +156,11 @@ export function useActions(state: State, nodeLookup: ComputedRef, 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, - } + }) } } }