impaktapps-ui-builder 0.0.963-copyElement.1009 → 0.0.963-copyElement.1011

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.1009",
3
+ "version": "0.0.963-copyElement.1011",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -208,7 +208,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
208
208
  }
209
209
  },
210
210
 
211
- PasteComponent: function(paramStore = store, setPage = this.setPage){
211
+ PasteComponent: function(paramStore = store,setPage = this.setPage){
212
212
  // const schema = cloneDeep(store.schema);
213
213
 
214
214
  const path = store.searchParams?.get("path");
@@ -220,11 +220,8 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
220
220
 
221
221
  const finalPath = path ? `${path}.elements[${insertComponentPath}]` : `elements[${insertComponentPath}]`;
222
222
 
223
-
224
-
225
-
226
223
  const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
227
- if(!copiedData.Handler){
224
+ if(copiedData.Handler){
228
225
  store.setNotify({
229
226
  FailMessage: "Pasting element not Valid",
230
227
  Fail: true,
@@ -114,7 +114,7 @@ export default (funcParams: funcParamsProps) => {
114
114
 
115
115
 
116
116
  PasteComponent: function(){
117
- Component(store, dynamicData, submitHandler, service).PasteComponent(store)
117
+ Component(store, dynamicData, submitHandler, service).PasteComponent(store,this.setPage)
118
118
  },
119
119
 
120
120
  RemoveItemButton: function(){