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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101-alpha.345",
3
+ "version": "0.0.101-alpha.347",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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
- // if (config?.programIdRequired && programId) {
110
- if (pathParts.length > 2) {
111
- // funcParams.store.navigate(
112
- // `${programId}/${funcParams.store.location.pathname}`
113
- // );
114
- if(decodeURIComponent(pathParts[2]) !== programName+""){
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) {