@trudb/tru-common-lib 0.2.202 → 0.2.203

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.
@@ -3110,7 +3110,7 @@ class TruToolbarMenu {
3110
3110
  });
3111
3111
  };
3112
3112
  ngAfterViewInit() {
3113
- this.atLeastOneItemVisible = this.config.choices.some((choice) => { return choice?.hasAccess(); });
3113
+ this.atLeastOneItemVisible = this.config.choices.some((choice) => { return typeof choice.hasAccess === 'function' && choice?.hasAccess(); });
3114
3114
  document.addEventListener('click', this.onDocumentClick);
3115
3115
  }
3116
3116
  ngOnDestroy() {