@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.
@@ -12673,8 +12673,6 @@
12673
12673
  _createClass(FixedListPipe, [{
12674
12674
  key: "transform",
12675
12675
  value: function transform(value, items) {
12676
- console.log(value);
12677
-
12678
12676
  if (!!items) {
12679
12677
  var item = items.find(function (i) {
12680
12678
  return i.code === value;
@@ -15427,8 +15425,6 @@
15427
15425
  value: function getActiveOrganisations() {
15428
15426
  var _this46 = this;
15429
15427
 
15430
- console.log('getActiveOrganisations', this.organisations$);
15431
-
15432
15428
  if (!this.organisations$) {
15433
15429
  var url = this.appconfig.getPrdUrl();
15434
15430
  var cacheTimeOut = this.appconfig.getCacheTimeOut();
@@ -18884,7 +18880,6 @@
18884
18880
  pageFormFields: pageFormFields,
18885
18881
  stringToResolve: stringToResolve
18886
18882
  });
18887
- console.log(ps.resolvePlaceholders());
18888
18883
  return ps.resolvePlaceholders();
18889
18884
  }
18890
18885
  }]);
@@ -26469,7 +26464,7 @@
26469
26464
  });
26470
26465
  this.organisationFormGroup = this.registerControl(new _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroup"]({}), true);
26471
26466
 
26472
- if (this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION) && this.parent.controls[WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION].value && this.parent.controls[WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase() === WriteOrganisationFieldComponent_1.YES) {
26467
+ if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION) && this.parent.controls[WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION].value && this.parent.controls[WriteOrganisationFieldComponent_1.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase() === WriteOrganisationFieldComponent_1.YES) {
26473
26468
  if (this.caseField && !this.caseField.value) {
26474
26469
  this.caseField.value = {
26475
26470
  OrganisationID: this.defaultOrg ? this.defaultOrg.organisationIdentifier : null,
@@ -26593,11 +26588,9 @@
26593
26588
  value: function preSelectDefaultOrg() {
26594
26589
  var _this78 = this;
26595
26590
 
26596
- console.log('preSelectDefaultOrg');
26597
26591
  this.instantiateOrganisationFormGroup(this.caseField.value.OrganisationID, this.caseField.value.OrganisationName);
26598
26592
  this.selectedOrg$ = this.organisations$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (organisations) {
26599
26593
  return organisations.filter(function (findOrg) {
26600
- console.log(findOrg.organisationIdentifier, _this78.caseField.value.OrganisationID);
26601
26594
  return findOrg.organisationIdentifier === _this78.caseField.value.OrganisationID;
26602
26595
  }).map(function (organisation) {
26603
26596
  return _this78.organisationConverter.toSimpleOrganisationModel(organisation);
@@ -35450,7 +35443,6 @@
35450
35443
  _createClass(OrganisationConverter, [{
35451
35444
  key: "toSimpleOrganisationModel",
35452
35445
  value: function toSimpleOrganisationModel(organisationModel) {
35453
- console.log('toSimpleOrganisationModel');
35454
35446
  return {
35455
35447
  organisationIdentifier: organisationModel.organisationIdentifier,
35456
35448
  name: organisationModel.name,