@hmcts/ccd-case-ui-toolkit 6.13.0-rc5 → 6.13.0-rc6

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.
@@ -27759,7 +27759,7 @@
27759
27759
  this.activeCaseFlags = this.hasActiveCaseFlags();
27760
27760
  };
27761
27761
  CaseFullAccessViewComponent.prototype.ngOnChanges = function (changes) {
27762
- if (!changes.prependedTabs.firstChange) {
27762
+ if (changes && changes.prependedTabs && !changes.prependedTabs.firstChange) {
27763
27763
  this.init();
27764
27764
  this.crf.detectChanges();
27765
27765
  this.organiseTabPosition();
@@ -27786,8 +27786,10 @@
27786
27786
  };
27787
27787
  CaseFullAccessViewComponent.prototype.checkRouteAndSetCaseViewTab = function () {
27788
27788
  var _this = this;
27789
- this.router.events.subscribe(function (val) {
27790
- var url = val && val.url;
27789
+ this.router.events
27790
+ .pipe(operators.filter(function (event) { return event instanceof i1$1.NavigationEnd; }))
27791
+ .subscribe(function (event) {
27792
+ var url = event && event.url;
27791
27793
  if (url) {
27792
27794
  var tabUrl = url ? url.split('#') : null;
27793
27795
  var tab_1 = tabUrl && tabUrl.length > 1 ? tabUrl[tabUrl.length - 1].replaceAll('%20', ' ') : '';