ngx-sp-auth 4.17.10 → 4.17.11

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.
@@ -3525,9 +3525,9 @@ class MenuLateralComponent {
3525
3525
  }
3526
3526
  this.initMobileObserver();
3527
3527
  await this.getDefaultEstab();
3528
- if (this.defaultEstabId != "") {
3529
- this.getEstabelecimentoSession(this.defaultEstabId);
3530
- }
3528
+ // Correção do bug onde após marcar um estabelecimento como default e trocar para outro o tooltip sempre exibia o nome do recém marcado como default,
3529
+ // com essa chamada fora do if e usando o estab do AuthStorage garantimos que o nome exibido no tooltip seja atualizado para o estabelecimento correto.
3530
+ this.getEstabelecimentoSession(this._authStorageService.infraEstabId);
3531
3531
  }
3532
3532
  ngOnDestroy() {
3533
3533
  document.removeEventListener('keydown', this.handleKeyboardShortcut);