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

Uncaught (in promise) TypeError: Cannot read property 'id' of undefined. #2523

Closed
2 tasks done
dvkruchinin opened this issue Dec 3, 2020 · 1 comment · Fixed by #2544
Closed
2 tasks done

Uncaught (in promise) TypeError: Cannot read property 'id' of undefined. #2523

dvkruchinin opened this issue Dec 3, 2020 · 1 comment · Fixed by #2544
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dvkruchinin
Copy link
Contributor

My actions before raising this issue

Expected Behaviour

The user who created the task assigns it to the second user. The second user reassigns the task to the third user. Error does not occur.
When you enter username in the "Assigned to" field and press Tab, the task is reassigned.

Current Behaviour

The second user assigns the task to the third user by entering their "username" in the "Assigned to" field and pressing Enter. An error occurs. The same error occurs when reassigning via the drop-down menu.

tasks-reducer.ts:325 Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
    at tasks-reducer.ts:325
    at Array.map (<anonymous>)
    at KE (tasks-reducer.ts:323)
    at redux.js:459
    at b (redux.js:213)
    at redux-logger.js:1
    at index.js:11
    at dispatch (redux.js:638)
    at tasks-actions.ts:480

And infinite preloader.

When enter username in the "Assigned to" field and press Tab the field is cleared and the task becomes unassigned to anyone.

Possible Solution

Fix the bug.

Steps to Reproduce (for bugs)

  1. Register an additional 2 users
  2. Create a task and assign it to the second user.
  3. Log in as the second. Enter the username of the third user in the "Assigned to" field and press "Enter" or via the drop-down menu. The error appears.
    Or log in as the second user. Enter the username of the third user in the "Assigned to" field and press Tab. The field is cleared and the task becomes unassigned to anyone.

Context

Your Environment

  • Git hash commit (git log -1): 5735efe
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.13
  • Are you using Docker Swarm or Kubernetes? No
  • Operating System and version (e.g. Linux, Windows, MacOS): Windows 10.
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container

Next steps

You may join our Gitter channel for community support.

@bsekachev bsekachev added the bug Something isn't working label Dec 3, 2020
@bsekachev
Copy link
Member

@dvkruchinin Thanks a lot!
@ActiveChooN Could you please look at the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants