Skip to content
Permalink
Browse files
fix(error): resolve error handler in case of server error (DEV-205) (#…
  • Loading branch information
kilchenmann committed Nov 5, 2021
1 parent 6bfe254 commit ff9d0971bf2f613591ddd446a006e64a5ca96203
Showing 1 changed file with 1 addition and 1 deletion.
@@ -23,7 +23,7 @@ export class ErrorHandlerService {
showMessage(error: ApiResponseError) {

// in case of (internal) server error
const apiServerError = (error.error && error.error['response'] && error.error['response'] === null);
const apiServerError = (error.error && !error.error['response']);

if ((error.status > 499 && error.status < 600) || apiServerError) {

0 comments on commit ff9d097

Please sign in to comment.