fix(core): prevent overwriting size in node styles object (#1608)

* fix(core): prevent overwriting size in node styles object

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

* fix(core): update node styles if `updateStyles` is `true`

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

* chore(core): update pkg json links

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-09-06 09:50:34 +02:00
parent 79fb61c1ba
commit f4bde90302
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ export function applyChanges<
element.dimensions = currentChange.dimensions
}
if (typeof currentChange.updateStyle !== 'undefined') {
if (typeof currentChange.updateStyle !== 'undefined' && currentChange.updateStyle) {
element.style = {
...(element.style || {}),
width: `${currentChange.dimensions?.width}px`,