@hmcts/ccd-case-ui-toolkit 6.19.12-rc1 → 6.19.12-rc2

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.
@@ -32401,12 +32401,13 @@
32401
32401
  };
32402
32402
  // Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
32403
32403
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
32404
+ var _a;
32404
32405
  var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
32405
32406
  var tabLabel = matTab.textLabel;
32406
32407
  // sortedTabs are fragments
32407
32408
  // appended/prepepended tabs use router navigation
32408
32409
  if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
32409
- (this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
32410
+ (((_a = this.appendedTabs) === null || _a === void 0 ? void 0 : _a.length) && tabLabel === this.HEARINGS_TAB_LABEL)) {
32410
32411
  // Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
32411
32412
  var tab = matTab['_viewContainerRef'];
32412
32413
  var id = tab.element.nativeElement.id;
@@ -32505,8 +32506,8 @@
32505
32506
  var value = {};
32506
32507
  if (caseFields) {
32507
32508
  caseFields.forEach(function (caseField) {
32508
- var _a;
32509
- value = Object.assign(Object.assign({}, value), (_a = {}, _a[caseField.id] = caseField.value, _a));
32509
+ var _b;
32510
+ value = Object.assign(Object.assign({}, value), (_b = {}, _b[caseField.id] = caseField.value, _b));
32510
32511
  });
32511
32512
  }
32512
32513
  return new i2$1.FormGroup({ data: new i2$1.FormControl(value) });