vcomply-workflow-engine 2.5.8 → 2.5.9

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.
@@ -3868,9 +3868,9 @@
3868
3868
  // event.placeholder
3869
3869
  };
3870
3870
  WorkflowComplianceComponent.prototype.assignFromFramework = function (freqObj) {
3871
- var _a, _b, _c, _d;
3871
+ var _a, _b, _c, _d, _e, _f;
3872
3872
  if (freqObj.data) {
3873
- this.reset();
3873
+ // this.reset();
3874
3874
  this.activeDeselector();
3875
3875
  var newStartDate = new Date();
3876
3876
  var frequencyDetailsObject = this.frequencyService.shortHand_freqCal(freqObj.data.frequency, newStartDate.getDate(), newStartDate.getMonth(), newStartDate.getFullYear());
@@ -3895,9 +3895,12 @@
3895
3895
  this.responsibilityForm.reminder_before_days = event.reminder_before_days;
3896
3896
  this.responsibilityForm.continuous_failed_days = event.continuous_failed_days;
3897
3897
  this.responsibilityForm.failed_after_days = event.failed_after_days;
3898
- this.moreOptions.OBJECTIVE = true;
3899
- this.populateOption.emit(['OBJECTIVE']);
3900
3898
  this.selectedFrameworkValues = (_d = freqObj.selectedFrameworkData) !== null && _d !== void 0 ? _d : undefined;
3899
+ if ((_e = freqObj === null || freqObj === void 0 ? void 0 : freqObj.data) === null || _e === void 0 ? void 0 : _e.objectives) {
3900
+ this.responsibilityForm.objective = (_f = freqObj.data.objectives) !== null && _f !== void 0 ? _f : '';
3901
+ this.moreOptions.OBJECTIVE = true;
3902
+ this.populateOption.emit(['OBJECTIVE']);
3903
+ }
3901
3904
  }
3902
3905
  };
3903
3906
  WorkflowComplianceComponent.prototype.refreshAllLists = function () {