impaktapps-ui-builder 0.0.101-alpha.345 → 0.0.101-alpha.347
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
|
@@ -105,22 +105,17 @@ export default (funcParams: funcParamsProps) => {
|
|
|
105
105
|
|
|
106
106
|
const pathParts = funcParams.store.location.pathname.split("/");
|
|
107
107
|
const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|
|
108
|
-
const programName = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.label || "";
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
pathParts[2] = programName;
|
|
116
|
-
const newPath = pathParts.slice(0, 3).join("/");
|
|
117
|
-
funcParams.store.navigate(newPath);
|
|
118
|
-
}
|
|
108
|
+
// const programName = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.label || "";
|
|
109
|
+
if (pathParts?.[2]?.startsWith("program_")) {
|
|
110
|
+
// if(decodeURIComponent(pathParts[2]) !== programName+""){
|
|
111
|
+
// pathParts[2] = programName;
|
|
112
|
+
// const newPath = pathParts.slice(0, 3).join("/");
|
|
113
|
+
// funcParams.store.navigate(newPath);
|
|
114
|
+
// }
|
|
119
115
|
if(programId !== "programID"){
|
|
120
116
|
funcParams.store.setFormdata((pre) => ({ ...pre, programId: programId }));
|
|
121
117
|
}
|
|
122
118
|
}
|
|
123
|
-
// }
|
|
124
119
|
const uiSchema = pageData?.uiSchema;
|
|
125
120
|
|
|
126
121
|
// if (config?.programIdRequired) {
|