impaktapps-ui-builder 0.0.101-alpha.231 → 0.0.101-alpha.233
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
|
@@ -92,13 +92,16 @@ export default (funcParams: funcParamsProps) => {
|
|
|
92
92
|
const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|
|
93
93
|
const queryParams = new URLSearchParams(location.search);;
|
|
94
94
|
console.log("queryParams ",queryParams)
|
|
95
|
-
if(queryParams?.get("ProgramID") !== programId)
|
|
95
|
+
if(queryParams?.get("ProgramID") !== programId+"")
|
|
96
96
|
{
|
|
97
97
|
funcParams.store.setSearchParams({...queryParams, ProgramID: programId})
|
|
98
98
|
funcParams.store.navigate(
|
|
99
99
|
0
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
|
+
if(programId !== "programID"){
|
|
103
|
+
funcParams.store.setFormdata((pre)=>({...pre,programId: programId}))
|
|
104
|
+
}
|
|
102
105
|
|
|
103
106
|
// const pathParts = funcParams.store.location.pathname.split("/");
|
|
104
107
|
// const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|