impaktapps-ui-builder 0.0.101-alpha.55 → 0.0.101-alpha.57

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.55",
3
+ "version": "0.0.101-alpha.57",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -156,13 +156,20 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
156
156
 
157
157
  const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
158
158
  const path = store.searchParams?.get("path");
159
+
160
+ const pathArrayAll = path.split(".");
161
+
162
+ const breadPathArray = pathArrayAll.reduce((ongoingArray, elem, i)=>{
163
+ const currObj = _.get(currentConfig, elem)
164
+ console.log("currObj>>",currObj, "index>>", i)
165
+ },currentConfig)
159
166
 
160
- const lastDotIndex = path.lastIndexOf('.')
161
- const currPath = path.slice(lastDotIndex+1)
167
+ // const lastDotIndex = path.lastIndexOf('.')
168
+ // const currPath = path.slice(lastDotIndex+1)
169
+
170
+ // const currObj = _.get(currentConfig, currPath)
162
171
 
163
- const currObj = _.get(currentConfig, currPath)
164
- console.log("path>>", schema.properties.pageName.path, "label>>", currObj?.config?.main?.label)
165
- schema.properties.pageName.path.push({label: currObj?.config?.main?.label || "undefined", path: path})
172
+ // schema.properties.pageName.path.push({label: currObj?.config?.main?.label || "undefined", path: path})
166
173
  return schema;
167
174
  },
168
175
  okHandler: () => okHandler(store),