monkey-front-core 0.0.365 → 0.0.366

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.
@@ -4369,7 +4369,9 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
4369
4369
  }
4370
4370
  handleMessage(error, mkc) {
4371
4371
  // eslint-disable-next-line camelcase
4372
- const { notifications, error_description, message } = error.error;
4372
+ const { notifications, error_description, message } = error?.error || {
4373
+ notifications: '', error_description: '', message: ''
4374
+ };
4373
4375
  let customMessage = '';
4374
4376
  if (message) {
4375
4377
  customMessage = message;
@@ -4408,6 +4410,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
4408
4410
  const { router, tokenStorage } = this;
4409
4411
  const { status } = error;
4410
4412
  const { companyType } = await tokenStorage?.getToken() || { companyType: '' };
4413
+ console.log(error);
4411
4414
  const routes = {
4412
4415
  403: 'forbidden',
4413
4416
  500: 'service-problems',
@@ -4420,6 +4423,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
4420
4423
  else {
4421
4424
  route = `${route}/pages`;
4422
4425
  }
4426
+ console.log(route);
4423
4427
  const found = routes[status];
4424
4428
  let timeout = 0;
4425
4429
  if (found && !this.isHttpCodeIgnoreRedirect(mkc, error?.status)) {