@hmcts/ccpay-web-component 5.0.1-beta170 → 5.0.1-beta171

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.
@@ -7371,23 +7371,25 @@ var AddRemissionComponent = /** @class */ (function () {
7371
7371
  function () {
7372
7372
  /** @type {?} */
7373
7373
  var creds = (/** @type {?} */ (this.remissionForm.controls.feesList));
7374
- for (var i = 0; i < this.fees.length; i++) {
7375
- creds.push(this.formBuilder.group({
7376
- id: this.fees[i].id,
7377
- code: this.fees[i].code,
7378
- volume: this.fees[i].volume,
7379
- calculated_amount: this.fees[i].calculated_amount,
7380
- apportion_amount: this.fees[i].apportion_amount,
7381
- ccd_case_number: this.fees[i].ccd_case_number,
7382
- description: this.fees[i].description,
7383
- net_amount: this.fees[i].net_amount,
7384
- version: this.fees[i].version,
7385
- amounttorefund: [''],
7386
- selected: [''],
7387
- updatedVolume: ''
7388
- }));
7374
+ if (creds.controls.length > 0) {
7375
+ for (var i = 0; i < this.fees.length; i++) {
7376
+ creds.push(this.formBuilder.group({
7377
+ id: this.fees[i].id,
7378
+ code: this.fees[i].code,
7379
+ volume: this.fees[i].volume,
7380
+ calculated_amount: this.fees[i].calculated_amount,
7381
+ apportion_amount: this.fees[i].apportion_amount,
7382
+ ccd_case_number: this.fees[i].ccd_case_number,
7383
+ description: this.fees[i].description,
7384
+ net_amount: this.fees[i].net_amount,
7385
+ version: this.fees[i].version,
7386
+ amounttorefund: [''],
7387
+ selected: [''],
7388
+ updatedVolume: ''
7389
+ }));
7390
+ }
7391
+ this.cd.detectChanges();
7389
7392
  }
7390
- this.cd.detectChanges();
7391
7393
  };
7392
7394
  Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
7393
7395
  get: /**