impaktapps-ui-builder 0.0.963-copyElement.1017 → 0.0.963-copyElement.1018

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.1017",
3
+ "version": "0.0.963-copyElement.1018",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -184,8 +184,10 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
184
184
  copyPasteElement: function(paramStore: any, setPage: any = this.setPage.bind(this) ){
185
185
 
186
186
  // Paste_Event // Paste_Component //Copy_Event //Copy_Component
187
- const actionType = dynamicData.tableButtonPath.split('_')[0];
188
- const elementType = dynamicData.tableButtonPath.split('_')[1];
187
+ // elements.0.Copy_Component
188
+ const path = dynamicData.path.split('.')[2];
189
+ const actionType = path.split('_')[0];
190
+ const elementType = path.split('_')[1];
189
191
 
190
192
  if(actionType === "Copy"){
191
193
  this.CopyElement(paramStore, elementType);