use for..of instead of forEach

This commit is contained in:
peterkogo
2024-01-30 13:25:02 +01:00
parent 5746c7b6fb
commit c9b1b78edf
3 changed files with 8 additions and 8 deletions
@@ -77,12 +77,12 @@
? { x: change.x, y: change.y }
: node.position;
childChanges.forEach((childChange) => {
for (const childChange of childChanges) {
const childNode = $nodeLookup.get(childChange.id);
if (childNode) {
childNode.position = childChange.position;
}
});
}
$nodes = $nodes;
}