Browse Source

Merge pull request #17987 from abpframework/auto-merge/rel-7-4/2250

Merge branch dev with rel-7.4
pull/17993/head
Masum ULU 3 years ago
committed by GitHub
parent
commit
3fa78a27d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts

6
npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts

@ -57,9 +57,9 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ
this.createErrorComponentService.execute(instance); this.createErrorComponentService.execute(instance);
} }
canHandle({ status }): boolean { canHandle(error): boolean {
this.status = status || 0; this.status = error?.status || 0;
return this.handledStatusCodes.indexOf(status) > -1; return this.handledStatusCodes.indexOf(this.status) > -1;
} }
execute(): void { execute(): void {

Loading…
Cancel
Save