impaktapps-ui-builder 0.0.101-alpha.342 → 0.0.101-alpha.344
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,16 +105,20 @@ 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 || "";
|
|
108
109
|
// if (config?.programIdRequired && programId) {
|
|
109
110
|
if (pathParts.length >= 2) {
|
|
110
111
|
// funcParams.store.navigate(
|
|
111
112
|
// `${programId}/${funcParams.store.location.pathname}`
|
|
112
113
|
// );
|
|
113
|
-
if(pathParts[2] !==
|
|
114
|
-
pathParts[2] =
|
|
114
|
+
if(decodeURIComponent(pathParts[2]) !== programName+""){
|
|
115
|
+
pathParts[2] = programName;
|
|
115
116
|
const newPath = pathParts.slice(0, 3).join("/");
|
|
116
117
|
funcParams.store.navigate(newPath);
|
|
117
118
|
}
|
|
119
|
+
if(programId !== "programID"){
|
|
120
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, programId: programId }));
|
|
121
|
+
}
|
|
118
122
|
}
|
|
119
123
|
// }
|
|
120
124
|
const uiSchema = pageData?.uiSchema;
|