@elementor/editor-components 3.35.0-384 → 3.35.0-385

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3790,7 +3790,7 @@ async function updateComponentsBeforeSave({ status, elements }) {
3790
3790
 
3791
3791
  // src/sync/before-save.ts
3792
3792
  var beforeSave = ({ container, status }) => {
3793
- const elements = container.model.get("elements")?.toJSON() ?? [];
3793
+ const elements = container?.model.get("elements").toJSON?.() ?? [];
3794
3794
  return Promise.all([
3795
3795
  updateArchivedComponentBeforeSave(),
3796
3796
  createComponentsBeforeSave({ elements, status }),