@hmcts/ccd-case-ui-toolkit 4.18.6 → 4.18.7-hearings

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.
package/RELEASE-NOTES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## RELEASE NOTES
2
2
 
3
+ ### Version 4.18.7-hearings
4
+ **EUI-5912** Hearing tab is not loading
5
+
3
6
  ### Version 4.17.6-EUI-5736-unassigned-cases-pagination
4
7
  **EUI-5736** unassigned cases pagination
5
8
 
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.18.6
3
+ * @version v4.18.7-hearings
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -24160,9 +24160,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24160
24160
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
24161
24161
  var tab = tabChangeEvent.tab['_viewContainerRef'];
24162
24162
  var id = tab.element.nativeElement.id;
24163
- var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
24163
+ // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
24164
+ // so have to hard code the hearings id here
24164
24165
  if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
24165
- (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
24166
+ (this.appendedTabs.length && id === 'hearings')) {
24166
24167
  this.router.navigate([id], { relativeTo: this.route });
24167
24168
  }
24168
24169
  else {