fix(console): remove redundant user api requests, show discovery document loading errors (#6683)

* optimize user observable

* fix observable guard

* lint

* lint

---------

Co-authored-by: Elio Bischof <[email protected]>
This commit is contained in:
Max Peintner
2023-10-11 07:02:20 +00:00
committed by GitHub
co-authored by Elio Bischof
parent f2d1cd2045
commit 412cd144ef
5 changed files with 27 additions and 34 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<div class="main-container">
<ng-container *ngIf="(authService.user | async) || {} as user">
<ng-container *ngIf="(authService.userSubject | async) || {} as user">
<cnsl-header
*ngIf="user && user !== {}"
[org]="org"