impaktapps-ui-builder 0.0.101-alpha.342 → 0.0.101-alpha.343

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.342",
3
+ "version": "0.0.101-alpha.343",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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] !== programId+""){
114
- pathParts[2] = programId;
114
+ if(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;