impaktapps-ui-builder 0.0.963-copyElement.1005 → 0.0.963-copyElement.1007

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.
@@ -8454,16 +8454,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8454
8454
  const insertComponentPath = formData.elements.length;
8455
8455
  const finalPath = `${path}.elements[${insertComponentPath}]`;
8456
8456
  const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
8457
- if (!copiedData.elements) {
8458
- store2.setNotify({
8459
- FailMessage: "Pasting element not Valid",
8460
- Fail: true
8461
- });
8462
- } else {
8463
- saveFormdataInSessionStorage(copiedData, finalPath);
8464
- sessionStorage.removeItem("copiedConfig");
8465
- this.setPage();
8466
- }
8457
+ saveFormdataInSessionStorage(copiedData, finalPath);
8458
+ sessionStorage.removeItem("copiedConfig");
8459
+ this.setPage();
8467
8460
  },
8468
8461
  RemoveItemButton: function(paramStore) {
8469
8462
  const schema2 = lodash.exports.cloneDeep(paramStore.schema || store2.schema);