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 'find' of null #1280

Open
richardolsson opened this issue May 31, 2021 · 0 comments
Open

TypeError: Cannot read property 'find' of null #1280

richardolsson opened this issue May 31, 2021 · 0 comments

Comments

@richardolsson
Copy link
Member

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

TypeError: Cannot read property 'find' of null
  File "/var/app/build/app/server/app.js", line 176, in orgIsValid
    let orgIsValid = orgId => !!state.user.memberships.find(m => m.organization.id == orgId);
  File "/var/app/build/app/server/app.js", line 186, in app.get
    if (orgIsValid(req.cookies.activeOrgId)) {
  File "/var/app/build/app/server/locale.js", line 69, in null.<anonymous>
    next();
  File "/var/app/build/app/server/datarouter.js", line 118, in Promise.all.then.catch
    Promise.all(promises).then(() => next()).catch(() => next());
...
(16 additional frame(s) were not displayed)

TypeError: Cannot read property 'find' 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