diff --git a/frontend/src/Editor/Container.jsx b/frontend/src/Editor/Container.jsx index 6787110c8a..416e7a6b0e 100644 --- a/frontend/src/Editor/Container.jsx +++ b/frontend/src/Editor/Container.jsx @@ -594,23 +594,21 @@ export const Container = ({ ...updatedBoxes, }; - handleLowPriorityWork(() => { - const diffState = diff(boxes, newBoxes); + const diffState = diff(boxes, newBoxes); - setBoxes((prev) => { - const updatedComponentsAsperDiff = Object.keys(diffState).reduce((acc, key) => { - const component = newBoxes[key]; - if (component) { - acc[key] = component; - } - return acc; - }, {}); + setBoxes((prev) => { + const updatedComponentsAsperDiff = Object.keys(diffState).reduce((acc, key) => { + const component = newBoxes[key]; + if (component) { + acc[key] = component; + } + return acc; + }, {}); - return { - ...prev, - ...updatedComponentsAsperDiff, - }; - }); + return { + ...prev, + ...updatedComponentsAsperDiff, + }; }); updateCanvasHeight(newBoxes);