@hmcts/ccd-case-ui-toolkit 4.17.6 → 4.17.7

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.17.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.17.6
3
+ * @version v4.17.7
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -24090,9 +24090,10 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24090
24090
  CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
24091
24091
  var tab = tabChangeEvent.tab['_viewContainerRef'];
24092
24092
  var id = tab.element.nativeElement.id;
24093
- var tabsLengthBeforeAppended = this.prependedTabs.length + this.caseDetails.tabs.length;
24093
+ // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
24094
+ // so have to hard code the hearings id here
24094
24095
  if ((tabChangeEvent.index <= 1 && this.prependedTabs.length) ||
24095
- (tabChangeEvent.index >= tabsLengthBeforeAppended && this.appendedTabs.length)) {
24096
+ (this.appendedTabs.length && id === 'hearings')) {
24096
24097
  this.router.navigate([id], { relativeTo: this.route });
24097
24098
  }
24098
24099
  else {