impaktapps-ui-builder 0.0.963-copyElement.1004 → 0.0.963-copyElement.1006

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.963-copyElement.1004",
3
+ "version": "0.0.963-copyElement.1006",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -199,7 +199,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
199
199
 
200
200
  const formData = getFormdataFromSessionStorage(copiedComponentPath);
201
201
 
202
- uiSchema.elements[4].config.main.heading = `Copied Element: ${formData.name}`;
202
+ uiSchema.elements[4].elements[1].config.main.heading = `Copied Element: ${formData.name}`;
203
203
 
204
204
  sessionStorage.setItem('copiedConfig',JSON.stringify(formData));
205
205
 
@@ -216,7 +216,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
216
216
  const insertComponentPath = formData.elements.length;
217
217
  const finalPath = `${path}.elements[${insertComponentPath}]`;
218
218
  const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
219
- if(!copiedData.elements){
219
+ if(!copiedData.type){
220
220
  store.setNotify({
221
221
  FailMessage: "Pasting element not Valid",
222
222
  Fail: true,