this.notifierService.notify('error', err.error.detail !== undefined ?
err.error.detail : this.translateService.instant('HTTPERROR.401'));
}
- this.activeModal.dismissAll();
+ } else {
+ this.notifierService.notify('error', err?.error?.detail !== undefined ?
+ err?.error?.detail : this.translateService.instant('HTTPERROR.401'));
}
+ this.activeModal.dismissAll();
} else if (err.error.status === HttpStatus.BAD_REQUEST) {
this.notifierService.notify('error', err.error.detail !== undefined ?
err.error.detail : this.translateService.instant('HTTPERROR.400'));
});
return {
url: apiURL,
- httpOptions: {headers : apiHeaders}
+ httpOptions: { headers: apiHeaders }
};
}
}