impaktapps-ui-builder 0.0.963-copyElement.1005 → 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.1005",
3
+ "version": "0.0.963-copyElement.1006",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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,