impaktapps-ui-builder 0.0.101-alpha.43 → 0.0.101-alpha.45

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.101-alpha.43",
3
+ "version": "0.0.101-alpha.45",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -62,9 +62,14 @@ export function refreshPage (type: string, store: any) {
62
62
 
63
63
  // Get Widget Type of parent
64
64
  const path = store.searchParams?.get("path");
65
- const pathArrayAll = path.split(".");
65
+ const lastDotIndex = path.lastIndexOf('.')
66
+ const parentPath = path.slice(0,lastDotIndex)
66
67
 
67
- const parentObj = _.get(currentConfig, path)
68
+ const parentObj = _.get(currentConfig, parentPath)
69
+
70
+ console.log("currentConfig", currentConfig);
71
+ console.log("path", path);
72
+ console.log("parentObj", parentObj)
68
73
 
69
74
  // const parentObj = pathArrayAll.reduce((currObj, path, index)=>{
70
75
  // if(index === pathArrayAll.length - 1){