vcomply-workflow-engine 2.4.47 → 2.4.48

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.
@@ -2840,7 +2840,7 @@ class WorkflowComplianceComponent {
2840
2840
  }
2841
2841
  getEditResponsibilityDetails(id) {
2842
2842
  this.responsibilityService.editResponsibility(id).subscribe((res) => {
2843
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
2843
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
2844
2844
  this.isDuplicateEntrust = true;
2845
2845
  if (res) {
2846
2846
  const currentUser = (_a = this.authService.getUserDetails()) === null || _a === void 0 ? void 0 : _a.user;
@@ -2905,7 +2905,7 @@ class WorkflowComplianceComponent {
2905
2905
  riskClass: res === null || res === void 0 ? void 0 : res.risk_class,
2906
2906
  riskMatrix: res === null || res === void 0 ? void 0 : res.risk_matrix_data
2907
2907
  };
2908
- this.selectedProgram = (res === null || res === void 0 ? void 0 : res.programDetails) ? res.programDetails : undefined;
2908
+ this.selectedProgram = ((_t = res === null || res === void 0 ? void 0 : res.programDetails) === null || _t === void 0 ? void 0 : _t.category_id) ? res.programDetails : undefined;
2909
2909
  this.isNotificationPending = res.notification_pending;
2910
2910
  if (this.isNotificationPending) {
2911
2911
  this.actionButtons[1].buttonText = 'View Responsibilities in Queue';
@@ -2928,7 +2928,7 @@ class WorkflowComplianceComponent {
2928
2928
  this.organizationId = this.authService.getOrganizationId();
2929
2929
  this.memberId = this.authService.getMemberId();
2930
2930
  }
2931
- if (((_t = this.responsibilityForm.assignees.list) === null || _t === void 0 ? void 0 : _t.length) === 0) {
2931
+ if (((_u = this.responsibilityForm.assignees.list) === null || _u === void 0 ? void 0 : _u.length) === 0) {
2932
2932
  this.isEntrust = true;
2933
2933
  this.mode = 'CREATE';
2934
2934
  this.assigneeRadioSelect = false;
@@ -2957,7 +2957,7 @@ class WorkflowComplianceComponent {
2957
2957
  frequency_time: ''
2958
2958
  };
2959
2959
  }
2960
- if ((_u = res.assessment) === null || _u === void 0 ? void 0 : _u.assessment_id) {
2960
+ if ((_v = res.assessment) === null || _v === void 0 ? void 0 : _v.assessment_id) {
2961
2961
  this.getAssessmentDetails(res.assessment, res.questionnaire_type);
2962
2962
  }
2963
2963
  if (!this.responsibilityForm.checkpoints) {
@@ -22580,9 +22580,9 @@ class ProgramListingComponent {
22580
22580
  break;
22581
22581
  }
22582
22582
  this.getSelectedProgramCount();
22583
- }
22584
- if ((_b = this.selectedCategories) === null || _b === void 0 ? void 0 : _b.length) {
22585
- this.populateCategories();
22583
+ if (((_b = this.selectedCategories) === null || _b === void 0 ? void 0 : _b.length) && this.currentProgram) {
22584
+ this.populateCategories();
22585
+ }
22586
22586
  }
22587
22587
  if (this.hideProgramsList) {
22588
22588
  this.getCategoriesList();