Skip to content

L10-end not working #3

@macimovic

Description

@macimovic

Hi, I am getting the following error inside the console when clicking on Events in navigation.

function beforeRouteEnter(routeTo, routeFrom, next) {
    nprogress__WEBPACK_IMPORTED_MODULE_3___default.a.start();
    _services_EventService_js__WEBPACK_IMPORTED_MODULE_2__["default"].getEvents(2, parseInt(routeTo.query.page) || 1).then(function (response) {
      console.log("inside then response handling");
      next(function (comp) {
        comp.events = response.data;
        comp.totalEvents = response.headers['x-total-count'];
      });
    }).catch(function () {
      next({
        name: 'NetworkError'
      });
    }).finally(function () {
      nprogress__WEBPACK_IMPORTED_MODULE_3___default.a.done();
    });
  }```
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions