zetkin / www.zetk.in

The main activist front-end for Zetkin.
https://www.zetk.in
4 stars 7 forks source link

TypeError: Cannot read property 'size' of undefined #285

Open richardolsson opened 3 years ago

richardolsson commented 3 years ago

https://sentry.io/organizations/zetkin-foundation/issues/2422721573/?referrer=github_plugin

TypeError: Cannot read property 'size' of undefined
  File "/var/app/build/app/components/pages/dashboard/DashboardPage.js", line 52, in mapStateToProps
    hasMemberships: !!state.getIn(['orgs', 'followingList', 'items']).size // error when logged out
  File "/var/app/build/app/server/app.js", line 396, in null.<anonymous>
    let html = _server2.default.renderToString(_react2.default.createElement(_IntlReduxProvider2.default, { store: req.store }, _react2.default.createElement(_reactRouter.RouterContext, props)));
  File "/var/app/build/app/server/app.js", line 395, in renderReactPage
    (0, _reactRouter.match)({ routes: _routes2.default, location: req.url }, (err, redirect, props) => {
  File "/var/app/build/app/server/app.js", line 387, in null.<anonymous>
    renderReactPage(_App2.default, req, res);
  File "/var/app/build/app/server/app.js", line 314, in app.use
    next();
...
(107 additional frame(s) were not displayed)

TypeError: Cannot read property 'size' of undefined