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.
@@ -3210,7 +3210,7 @@
3210
3210
  WorkflowComplianceComponent.prototype.getEditResponsibilityDetails = function (id) {
3211
3211
  var _this = this;
3212
3212
  this.responsibilityService.editResponsibility(id).subscribe(function (res) {
3213
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
3213
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
3214
3214
  _this.isDuplicateEntrust = true;
3215
3215
  if (res) {
3216
3216
  var currentUser = (_a = _this.authService.getUserDetails()) === null || _a === void 0 ? void 0 : _a.user;
@@ -3275,7 +3275,7 @@
3275
3275
  riskClass: res === null || res === void 0 ? void 0 : res.risk_class,
3276
3276
  riskMatrix: res === null || res === void 0 ? void 0 : res.risk_matrix_data
3277
3277
  };
3278
- _this.selectedProgram = (res === null || res === void 0 ? void 0 : res.programDetails) ? res.programDetails : undefined;
3278
+ _this.selectedProgram = ((_t = res === null || res === void 0 ? void 0 : res.programDetails) === null || _t === void 0 ? void 0 : _t.category_id) ? res.programDetails : undefined;
3279
3279
  _this.isNotificationPending = res.notification_pending;
3280
3280
  if (_this.isNotificationPending) {
3281
3281
  _this.actionButtons[1].buttonText = 'View Responsibilities in Queue';
@@ -3298,7 +3298,7 @@
3298
3298
  _this.organizationId = _this.authService.getOrganizationId();
3299
3299
  _this.memberId = _this.authService.getMemberId();
3300
3300
  }
3301
- if (((_t = _this.responsibilityForm.assignees.list) === null || _t === void 0 ? void 0 : _t.length) === 0) {
3301
+ if (((_u = _this.responsibilityForm.assignees.list) === null || _u === void 0 ? void 0 : _u.length) === 0) {
3302
3302
  _this.isEntrust = true;
3303
3303
  _this.mode = 'CREATE';
3304
3304
  _this.assigneeRadioSelect = false;
@@ -3327,7 +3327,7 @@
3327
3327
  frequency_time: ''
3328
3328
  };
3329
3329
  }
3330
- if ((_u = res.assessment) === null || _u === void 0 ? void 0 : _u.assessment_id) {
3330
+ if ((_v = res.assessment) === null || _v === void 0 ? void 0 : _v.assessment_id) {
3331
3331
  _this.getAssessmentDetails(res.assessment, res.questionnaire_type);
3332
3332
  }
3333
3333
  if (!_this.responsibilityForm.checkpoints) {
@@ -23841,9 +23841,9 @@
23841
23841
  break;
23842
23842
  }
23843
23843
  this.getSelectedProgramCount();
23844
- }
23845
- if ((_b = this.selectedCategories) === null || _b === void 0 ? void 0 : _b.length) {
23846
- this.populateCategories();
23844
+ if (((_b = this.selectedCategories) === null || _b === void 0 ? void 0 : _b.length) && this.currentProgram) {
23845
+ this.populateCategories();
23846
+ }
23847
23847
  }
23848
23848
  if (this.hideProgramsList) {
23849
23849
  this.getCategoriesList();