impaktapps-ui-builder 0.0.101-alpha.55 → 0.0.101-alpha.56
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
|
@@ -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((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
|
-
|
|
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),
|