removed error overlay for timeout

This commit is contained in:
Timo Bejan 2021-09-08 12:35:26 +03:00
parent 0112333e7b
commit ea2b90fabd

View File

@ -12,7 +12,8 @@ export class ServerErrorInterceptor implements HttpInterceptor {
return next.handle(req).pipe(
map((event: HttpEvent<any>) => event),
catchError((error: HttpErrorResponse) => {
if (error.status >= 500 || error.status === 0) {
if (error.status >= 500) {
// || error.status === 0
this._errorService.set(error);
}
return throwError(error);