use non-deprecated throwError call signature

This commit is contained in:
Cucumberrbob 2025-06-07 17:35:35 +01:00
parent e48f1d91a4
commit 6277a4ca5e
No known key found for this signature in database
GPG key ID: 2B935C47401C3614

View file

@ -16,7 +16,7 @@ export class AuthInterceptor implements HttpInterceptor {
} else if (error && (error.status === 401 || error.status === 403)) {
this.router.navigate(['/login']);
}
return throwError(error);
return throwError(() => error);
}),
);
}