diff --git a/dashboard/users/role-users/role-users.component.ts b/dashboard/users/role-users/role-users.component.ts index a6420e6c..c4a0de43 100644 --- a/dashboard/users/role-users/role-users.component.ts +++ b/dashboard/users/role-users/role-users.component.ts @@ -117,7 +117,7 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges { this.pending = users; this.loadPending = false; }, error => { - this.active = []; + this.pending = []; this.loadPending = false; })); } diff --git a/error-interceptor.service.ts b/error-interceptor.service.ts index c8b93296..3d96bd07 100644 --- a/error-interceptor.service.ts +++ b/error-interceptor.service.ts @@ -18,7 +18,7 @@ export class ErrorInterceptorService implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { return next.handle(req).pipe(catchError(err => { - if ((err.status === 0 && properties.registryUrl && this.isService(req, properties.registryUrl)) || + if ((err.status === 0 && properties.registryUrl && this.isService(req, properties.registryUrl) && req.method !== 'GET') || (err.status === 401 && !this.isService(req, ErrorInterceptorService.UNAUTHORIZED_WHITELIST))) { this.logOut(); } else if(err.status === 403 && !this.isService(req, ErrorInterceptorService.UNAUTHORIZED_WHITELIST)) {