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

Cannot show all projects #2826

Closed
2 of 4 tasks
maciaszczykm opened this issue Dec 4, 2020 · 1 comment · Fixed by #2848
Closed
2 of 4 tasks

Cannot show all projects #2826

maciaszczykm opened this issue Dec 4, 2020 · 1 comment · Fixed by #2848
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@maciaszczykm
Copy link
Contributor

What happened?:

main.9e6aa40c147cfd4d15c6.js:1 ERROR TypeError: Cannot read property 'map' of undefined
    at main.9e6aa40c147cfd4d15c6.js:1
    at Array.filter (<anonymous>)
    at ke._loadCurrentUserRoles (main.9e6aa40c147cfd4d15c6.js:1)
    at u._next (main.9e6aa40c147cfd4d15c6.js:1)
    at u.__tryOrUnsub (main.9e6aa40c147cfd4d15c6.js:1)
    at u.next (main.9e6aa40c147cfd4d15c6.js:1)
    at l._next (main.9e6aa40c147cfd4d15c6.js:1)
    at l.next (main.9e6aa40c147cfd4d15c6.js:1)
    at a._next (main.9e6aa40c147cfd4d15c6.js:1)
    at a.next (main.9e6aa40c147cfd4d15c6.js:1)

What should happen?:
No error, the view should load.

How to reproduce?:

  1. Go to projects list with an admin user.
  2. Switch to all project view.

Environment

  • UI Version:
  • API Version:
  • Domain:
    • run
    • run-2
    • dev
    • locally
  • Others:
@maciaszczykm maciaszczykm added kind/bug Categorizes issue or PR as related to a bug. team/ui labels Dec 4, 2020
@maciaszczykm
Copy link
Contributor Author

This happen probably because of some "bad" project that doesn't have owner set or something like this. However, we should be able to avoid this kind of situations by adding some additional checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant