diff --git a/frontend/src/Editor/Container.jsx b/frontend/src/Editor/Container.jsx index d2d742209c..6787110c8a 100644 --- a/frontend/src/Editor/Container.jsx +++ b/frontend/src/Editor/Container.jsx @@ -189,7 +189,7 @@ export const Container = ({ } else { const diffState = diff(components, boxes); - if (!_.isEmpty(diffState) && !isOnlyLayoutUpdate(diffState)) { + if (!_.isEmpty(diffState)) { setBoxes(components); } } diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index ad6ec31dfa..2c11b6e848 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -1290,7 +1290,9 @@ const EditorComponent = (props) => { const _appDefinition = JSON.parse(JSON.stringify(appDefinition)); let newComponents = _appDefinition?.pages[currentPageId].components; const selectedComponents = useEditorStore.getState()?.selectedComponents; + const componentsIds = []; for (const selectedComponent of selectedComponents) { + componentsIds.push(selectedComponent.id); let top = newComponents[selectedComponent.id].layouts[currentLayout].top; let left = newComponents[selectedComponent.id].layouts[currentLayout].left; const width = newComponents[selectedComponent.id]?.layouts[currentLayout]?.width; @@ -1327,6 +1329,8 @@ const EditorComponent = (props) => { _appDefinition.pages[currentPageId].components = newComponents; appDefinitionChanged(_appDefinition, { containerChanges: true, widgetMovedWithKeyboard: true }); + // console.log('arpit::', { componentsIds }); + // updateComponentsNeedsUpdateOnNextRender(componentsIds); }; const copyComponents = () =>