impaktapps-ui-builder 0.0.101-alpha.334 → 0.0.101-alpha.336

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.
@@ -10299,19 +10299,18 @@ var service = (funcParams) => {
10299
10299
  }));
10300
10300
  }
10301
10301
  const config2 = pageData == null ? void 0 : pageData.config;
10302
- const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10303
- const queryParams = new URLSearchParams(location.search);
10304
- console.log("queryParams ", queryParams);
10305
- if ((queryParams == null ? void 0 : queryParams.get("ProgramID")) !== programId + "") {
10306
- funcParams.store.setSearchParams({ ...queryParams, ProgramID: programId });
10307
- funcParams.store.navigate(
10308
- 0
10309
- );
10310
- }
10311
- if (programId !== "programID") {
10312
- funcParams.store.setFormdata((pre) => ({ ...pre, programId }));
10313
- }
10314
10302
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10303
+ if (config2 == null ? void 0 : config2.programIdRequired) {
10304
+ const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10305
+ const queryParams = new URLSearchParams(location.search);
10306
+ console.log("queryParams ", queryParams);
10307
+ if ((queryParams == null ? void 0 : queryParams.get("ProgramID")) !== programId + "") {
10308
+ funcParams.store.setSearchParams({ ...queryParams, ProgramID: programId });
10309
+ }
10310
+ if (programId !== "programID") {
10311
+ funcParams.store.setFormdata((pre) => ({ ...pre, programId }));
10312
+ }
10313
+ }
10315
10314
  const event2 = new CustomEvent("pageNameChanged", {
10316
10315
  detail: { pageName: config2.label }
10317
10316
  });