@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.
@@ -7258,23 +7258,25 @@
7258
7258
  function () {
7259
7259
  /** @type {?} */
7260
7260
  var creds = ( /** @type {?} */(this.remissionForm.controls.feesList));
7261
- for (var i = 0; i < this.fees.length; i++) {
7262
- creds.push(this.formBuilder.group({
7263
- id: this.fees[i].id,
7264
- code: this.fees[i].code,
7265
- volume: this.fees[i].volume,
7266
- calculated_amount: this.fees[i].calculated_amount,
7267
- apportion_amount: this.fees[i].apportion_amount,
7268
- ccd_case_number: this.fees[i].ccd_case_number,
7269
- description: this.fees[i].description,
7270
- net_amount: this.fees[i].net_amount,
7271
- version: this.fees[i].version,
7272
- amounttorefund: [''],
7273
- selected: [''],
7274
- updatedVolume: ''
7275
- }));
7261
+ if (creds.controls.length > 0) {
7262
+ for (var i = 0; i < this.fees.length; i++) {
7263
+ creds.push(this.formBuilder.group({
7264
+ id: this.fees[i].id,
7265
+ code: this.fees[i].code,
7266
+ volume: this.fees[i].volume,
7267
+ calculated_amount: this.fees[i].calculated_amount,
7268
+ apportion_amount: this.fees[i].apportion_amount,
7269
+ ccd_case_number: this.fees[i].ccd_case_number,
7270
+ description: this.fees[i].description,
7271
+ net_amount: this.fees[i].net_amount,
7272
+ version: this.fees[i].version,
7273
+ amounttorefund: [''],
7274
+ selected: [''],
7275
+ updatedVolume: ''
7276
+ }));
7277
+ }
7278
+ this.cd.detectChanges();
7276
7279
  }
7277
- this.cd.detectChanges();
7278
7280
  };
7279
7281
  Object.defineProperty(AddRemissionComponent.prototype, "feesList", {
7280
7282
  get: /**