impaktapps-ui-builder 0.0.386 → 0.0.388

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.
@@ -41,7 +41,7 @@ const PageMasterSchema = {
41
41
  }
42
42
  }
43
43
  },
44
- required: ["label", "template"]
44
+ required: ["template", "name"]
45
45
  };
46
46
  const PageMasterUiSchema = {
47
47
  type: "HorizontalLayout",
@@ -7643,9 +7643,15 @@ var pageMaster = (funcParams) => {
7643
7643
  store2.formData.elements = [];
7644
7644
  }
7645
7645
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
7646
- store2.navigate(
7647
- `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
7648
- );
7646
+ if (id) {
7647
+ store2.navigate(
7648
+ `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
7649
+ );
7650
+ } else {
7651
+ store2.navigate(
7652
+ `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}`
7653
+ );
7654
+ }
7649
7655
  },
7650
7656
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7651
7657
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,