vcomply-workflow-engine 3.1.23 → 3.1.25

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.
@@ -5230,6 +5230,9 @@ class GrcObjectContainerComponent {
5230
5230
  this.disconnectRefresh = new EventEmitter();
5231
5231
  this.resetForm = new EventEmitter();
5232
5232
  }
5233
+ ngOnDestroy() {
5234
+ this.resetGRCForm();
5235
+ }
5233
5236
  ngOnInit() {
5234
5237
  this.grcPayload = JSON.parse(JSON.stringify(this.grcService.GRC_PAYLOAD));
5235
5238
  this.grcPayload.type = this.grcType;
@@ -5602,6 +5605,7 @@ class GrcObjectContainerComponent {
5602
5605
  this.resetGRCForm();
5603
5606
  }
5604
5607
  else if (event === 'view') {
5608
+ this.resetGRCForm();
5605
5609
  this.viewGRC();
5606
5610
  }
5607
5611
  }
@@ -5609,7 +5613,7 @@ class GrcObjectContainerComponent {
5609
5613
  this.showSmiley = false;
5610
5614
  this.isLoading = false;
5611
5615
  this.uiKitService.isSmileyOn = false;
5612
- this.resetGRCObject();
5616
+ this.resetGRCForm();
5613
5617
  this.closeWorkflow.emit({ evt: this.addedGRC, confirm: false });
5614
5618
  }
5615
5619
  resetGRCForm() {
@@ -5636,8 +5640,8 @@ class GrcObjectContainerComponent {
5636
5640
  if (this.MODE !== 'EDIT') {
5637
5641
  window.location.href = url;
5638
5642
  }
5639
- this.closeSmiley('');
5640
5643
  this.resetGRCForm();
5644
+ this.closeSmiley('');
5641
5645
  }
5642
5646
  setOtherGRCTypesFormate() {
5643
5647
  const grcTypes = ['assets', 'vendors', 'processes', 'inventory'];