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

editor: unexpected error while dragging end track range extremity #3896

Closed
jacomyal opened this issue Apr 13, 2023 · 0 comments
Closed

editor: unexpected error while dragging end track range extremity #3896

jacomyal opened this issue Apr 13, 2023 · 0 comments
Assignees
Labels
kind:bug Something isn't working module:infra-editor Infra Edition

Comments

@jacomyal
Copy link
Contributor

What happened?

When dragging both extremities of some speed section's track range to the start of the related track section, an error occurs.

What did you expect to happen?

Nor error should occur.

How can we reproduce it (as minimally and precisely as possible)?

  1. Select a SpeedSection (preferably a one with few track ranges)
  2. Click on "Edit selected item"
  3. On any track range, select the end point, and move it until it reaches the start point

At this point, an error occurs with the message Uncaught Error: coordinates must be an array of two or more positions.

It is related to this issue:
Turfjs/turf#1577

What operating system, browser and environment are you using?

  • Browser: Firefox and Chrome
  • OS: Ubuntu
  • Env: Local

OSRD version (top right corner Account button > Informations)

...

@jacomyal jacomyal added kind:bug Something isn't working module:infra-editor Infra Edition labels Apr 13, 2023
@jacomyal jacomyal self-assigned this Apr 13, 2023
@jacomyal jacomyal changed the title Editing editor: unexpected error while dragging end track range extremity Apr 13, 2023
jacomyal added a commit that referenced this issue Apr 13, 2023
@sim51 sim51 closed this as completed in 1d67312 Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working module:infra-editor Infra Edition
Projects
None yet
Development

No branches or pull requests

1 participant