Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'size' of null #280

Open
richardolsson opened this issue Jan 20, 2021 · 0 comments
Open

TypeError: Cannot read property 'size' of null #280

richardolsson opened this issue Jan 20, 2021 · 0 comments

Comments

@richardolsson
Copy link
Member

I believe this was caused by trying to log in after deactivating an organization to which the user is still connected.

TypeError: Cannot read property 'size' of null
  File "/var/app/build/app/components/pages/dashboard/DashboardPage.js", line 52, in mapStateToProps
    hasMemberships: !!state.getIn(['orgs', 'membershipList', 'items']).size // error when logged out
  File "/var/app/build/app/server/app.js", line 386, 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 385, in renderReactPage
    (0, _reactRouter.match)({ routes: _routes2.default, location: req.url }, (err, redirect, props) => {
  File "/var/app/build/app/server/app.js", line 377, in null.<anonymous>
    renderReactPage(_App2.default, req, res);
  File "/var/app/build/app/server/app.js", line 304, in app.use
    next();
...
(107 additional frame(s) were not displayed)

TypeError: Cannot read property 'size' of null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant