use for..of instead of forEach
This commit is contained in:
@@ -90,14 +90,14 @@ function ResizeControl({
|
||||
changes.push(dimensionChange);
|
||||
}
|
||||
|
||||
childChanges.forEach((childChange) => {
|
||||
for (const childChange of childChanges) {
|
||||
const positionChange: NodePositionChange = {
|
||||
...childChange,
|
||||
type: 'position',
|
||||
};
|
||||
|
||||
changes.push(positionChange);
|
||||
});
|
||||
}
|
||||
|
||||
triggerNodeChanges(changes);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user