@abp/ng.theme.shared 7.3.1 → 7.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1879,15 +1879,10 @@ class ErrorHandler {
1879
1879
  else {
1880
1880
  switch (err.status) {
1881
1881
  case 401:
1882
- this.canCreateCustomError(401)
1883
- ? this.show401Page()
1884
- : this.showError({
1885
- key: DEFAULT_ERROR_LOCALIZATIONS.defaultError401.title,
1886
- defaultValue: DEFAULT_ERROR_MESSAGES.defaultError401.title,
1887
- }, {
1888
- key: DEFAULT_ERROR_LOCALIZATIONS.defaultError401.details,
1889
- defaultValue: DEFAULT_ERROR_MESSAGES.defaultError401.details,
1890
- }).subscribe(() => this.navigateToLogin());
1882
+ if (this.canCreateCustomError(401)) {
1883
+ this.show401Page();
1884
+ }
1885
+ this.navigateToLogin();
1891
1886
  break;
1892
1887
  case 403:
1893
1888
  this.createErrorComponent({