Commit 6ef7e813fe99f22aa4e350040f93d8ffdfe999ae

Authored by Vladyslav_Prykhodko
1 parent e113daa0

UI: Added catch error get OAuth2

... ... @@ -201,10 +201,11 @@ export class AuthService {
201 201 public loadOAuth2Clients(): Observable<Array<OAuth2ClientInfo>> {
202 202 return this.http.post<Array<OAuth2ClientInfo>>(`/api/noauth/oauth2Clients`,
203 203 null, defaultHttpOptions()).pipe(
204   - tap((OAuth2Clients) => {
205   - this.oauth2Clients = OAuth2Clients;
206   - })
207   - );
  204 + catchError(err => of([])),
  205 + tap((OAuth2Clients) => {
  206 + this.oauth2Clients = OAuth2Clients;
  207 + })
  208 + );
208 209 }
209 210
210 211 private forceDefaultPlace(authState?: AuthState, path?: string, params?: any): boolean {
... ...