@morozeckiy/dd-lib 0.7.116 → 0.7.117

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.
@@ -4457,8 +4457,8 @@ class LibTabsFragmentComponent {
4457
4457
  }
4458
4458
  }
4459
4459
  else if (this.needInitEvent) {
4460
- if (this.noFragment && this.tabs?.[0].path) {
4461
- this.activeFragment = this.tabs?.length ? this.tabs.find(f => '/' + (this.rout ? this.rout + '/' : '') + f.path === this.location.path())?.id : 0;
4460
+ if (this.noFragment && typeof this.tabs?.[0].path === 'string') {
4461
+ this.activeFragment = this.tabs?.length ? (this.tabs.find(f => '/' + (this.rout ? this.rout + '/' : '') + f.path === this.location.path())?.id || 0) : 0;
4462
4462
  }
4463
4463
  }
4464
4464
  this.setActiveTab.emit(this.activeFragment);