impaktapps-ui-builder 0.0.963-copyElement.1020 → 0.0.963-copyElement.1021

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