use destructuring
This commit is contained in:
@@ -92,9 +92,8 @@ function ResizeControl({
|
|||||||
|
|
||||||
childChanges.forEach((childChange) => {
|
childChanges.forEach((childChange) => {
|
||||||
const positionChange: NodePositionChange = {
|
const positionChange: NodePositionChange = {
|
||||||
id: childChange.id,
|
...childChange,
|
||||||
type: 'position',
|
type: 'position',
|
||||||
position: childChange.position,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
changes.push(positionChange);
|
changes.push(positionChange);
|
||||||
|
|||||||
Reference in New Issue
Block a user