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:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user