@hmcts/ccd-case-ui-toolkit 5.0.0-angular11-upgrade → 5.0.1-angular11-upgrade

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.
@@ -7235,7 +7235,6 @@ var FixedListPipe_1;
7235
7235
 
7236
7236
  let FixedListPipe = FixedListPipe_1 = class FixedListPipe {
7237
7237
  transform(value, items) {
7238
- console.log(value);
7239
7238
  if (!!items) {
7240
7239
  const item = items.find(i => i.code === value);
7241
7240
  return item ? item.label : FixedListPipe_1.EMPTY;
@@ -8803,7 +8802,6 @@ let OrganisationService = OrganisationService_1 = class OrganisationService {
8803
8802
  return organisationsVm;
8804
8803
  }
8805
8804
  getActiveOrganisations() {
8806
- console.log('getActiveOrganisations', this.organisations$);
8807
8805
  if (!this.organisations$) {
8808
8806
  const url = this.appconfig.getPrdUrl();
8809
8807
  const cacheTimeOut = this.appconfig.getCacheTimeOut();
@@ -10837,7 +10835,6 @@ var PlaceholderService_1;
10837
10835
  let PlaceholderService = PlaceholderService_1 = class PlaceholderService {
10838
10836
  resolvePlaceholders(pageFormFields, stringToResolve) {
10839
10837
  const ps = new PlaceholderService_1.PlaceholderSubstitutor({ pageFormFields, stringToResolve });
10840
- console.log(ps.resolvePlaceholders());
10841
10838
  return ps.resolvePlaceholders();
10842
10839
  }
10843
10840
  };
@@ -15032,7 +15029,7 @@ let WriteOrganisationFieldComponent = WriteOrganisationFieldComponent_1 = class
15032
15029
  this.searchOrgValue$ = this.searchOrgTextFormControl.valueChanges;
15033
15030
  this.searchOrgValue$.subscribe(value => this.onSearchOrg(value));
15034
15031
  this.organisationFormGroup = this.registerControl(new _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroup"]({}), true);
15035
- if (this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION)
15032
+ if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION)
15036
15033
  && this.parent.controls[WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION].value
15037
15034
  && this.parent.controls[WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase()
15038
15035
  === WriteOrganisationFieldComponent_1.YES) {
@@ -15120,10 +15117,8 @@ let WriteOrganisationFieldComponent = WriteOrganisationFieldComponent_1 = class
15120
15117
  this.organisationFormGroup.setValue(this.caseField.value);
15121
15118
  }
15122
15119
  preSelectDefaultOrg() {
15123
- console.log('preSelectDefaultOrg');
15124
15120
  this.instantiateOrganisationFormGroup(this.caseField.value.OrganisationID, this.caseField.value.OrganisationName);
15125
15121
  this.selectedOrg$ = this.organisations$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(organisations => organisations.filter(findOrg => {
15126
- console.log(findOrg.organisationIdentifier, this.caseField.value.OrganisationID);
15127
15122
  return findOrg.organisationIdentifier === this.caseField.value.OrganisationID;
15128
15123
  })
15129
15124
  .map(organisation => this.organisationConverter.toSimpleOrganisationModel(organisation))[0]));
@@ -20339,7 +20334,6 @@ let OrganisationConverter = OrganisationConverter_1 = class OrganisationConverte
20339
20334
  return simpleAddress;
20340
20335
  }
20341
20336
  toSimpleOrganisationModel(organisationModel) {
20342
- console.log('toSimpleOrganisationModel');
20343
20337
  return {
20344
20338
  organisationIdentifier: organisationModel.organisationIdentifier,
20345
20339
  name: organisationModel.name,