impaktapps-ui-builder 0.0.101-alpha.90 → 0.0.101-alpha.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101-alpha.90",
3
+ "version": "0.0.101-alpha.92",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -368,7 +368,12 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
368
368
  },
369
369
  ElementPathSetter: function(uiSchema: any,copiedFormData?: any){
370
370
  const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
371
- uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Path: ${formData.name}`;
371
+ if(uiSchema?.elements?.[1]?.elements?.[0]?.config?.main?.headerIcons){
372
+ uiSchema.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Path: ${formData.name}`;
373
+ }
374
+ else if(uiSchema?.elements?.[1]?.elements?.[1]?.config?.main?.headerIcons){
375
+ uiSchema.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Path: ${formData.name}`;
376
+ }
372
377
  }
373
378
  }
374
379
  };
@@ -152,7 +152,6 @@ export default (
152
152
  });
153
153
  });
154
154
  }
155
- console.log("pathArray>>",pathArray)
156
155
  schema.properties.pageName.path = pathArray;
157
156
  store.setSchema(schema);
158
157
  store.setUiSchema(uiSchema);
@@ -194,7 +193,6 @@ export default (
194
193
  });
195
194
  });
196
195
  }
197
- console.log("pathArray>>",pathArray)
198
196
  schema.properties.pageName.path = _.cloneDeep(pathArray);
199
197
  return schema;
200
198
  },