if user does not defined skiped error, error handler should work

pull/17373/head
Mahmut Gundogdu 2 years ago
parent 7d5e2345b3
commit c1288535e8

@ -89,9 +89,10 @@ export class ErrorHandler {
protected filterRestErrors = ({ status }: HttpErrorResponse): boolean => {
if (typeof status !== 'number') return false;
if(!this.httpErrorConfig.skipHandledErrorCodes){
return true;
}
return (
!!this.httpErrorConfig.skipHandledErrorCodes &&
this.httpErrorConfig.skipHandledErrorCodes.findIndex(code => code === status) < 0
);
};

Loading…
Cancel
Save