From afa88610edcf573d339c13f06d20c1a94d4572b1 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:44:14 +0200 Subject: [PATCH] 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> --- .changeset/fluffy-mayflies-fetch.md | 5 +++++ packages/core/src/store/actions.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/fluffy-mayflies-fetch.md 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, - } + }) } } }