vcomply-workflow-engine 2.6.189 → 2.6.190

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.
@@ -3426,7 +3426,14 @@ class WorkflowComplianceComponent {
3426
3426
  this.actionButtons = [
3427
3427
  { buttonText: 'Go to risk treatment', class: 'blue-btn', id: 'view' },
3428
3428
  ];
3429
- this.populateOption.emit(['RC']);
3429
+ // Previously there was only RC was emitting which made the checked options to de check now checking the condition and sending all the selected options
3430
+ let checkedMoreOptions = [];
3431
+ for (const key in this.moreOptions) {
3432
+ if (this.moreOptions[key]) {
3433
+ checkedMoreOptions.push(key);
3434
+ }
3435
+ }
3436
+ this.populateOption.emit(checkedMoreOptions);
3430
3437
  }
3431
3438
  }, err => {
3432
3439
  console.error(err);