diff --git a/services/user-management.service.ts b/services/user-management.service.ts index 601066db..e40f93c4 100644 --- a/services/user-management.service.ts +++ b/services/user-management.service.ts @@ -2,7 +2,7 @@ import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {BehaviorSubject, from, Observable, of} from "rxjs"; import {COOKIE, User} from "../login/utils/helper.class"; -import {catchError, map, timeout} from "rxjs/operators"; +import {map} from "rxjs/operators"; import {NavigationEnd, Router} from "@angular/router"; import {properties} from "../../../environments/environment"; @@ -57,8 +57,6 @@ export class UserManagementService{ } else { this.sub = this.http.get(properties.userInfoUrl + token).pipe(map(userInfo => { return this.parseUserInfo(userInfo); - })).pipe(timeout(3000), catchError(() => { - return of(null); })).subscribe(user => { this.getUserInfoSubject.next(user); if(resolve) {