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

BUG WHEN ADDING NEW ROUTES #91

Open
opujade opened this issue Jul 5, 2024 · 1 comment · Fixed by #92 or #95
Open

BUG WHEN ADDING NEW ROUTES #91

opujade opened this issue Jul 5, 2024 · 1 comment · Fixed by #92 or #95
Assignees
Labels
bug Something isn't working

Comments

@opujade
Copy link
Collaborator

opujade commented Jul 5, 2024

Routes are not linked correctly with it's sectors, schools and locations.

If you add a Route in a School that already exists, the index is not correctly linked to it's Sector, School and Location.

Here's an example:

1. I add this route:

image

It is correctly added:

image
image
image
image
image

2. See what happens if I add another one to the same Location and School (for example):

image

It doesn't Change:

image

Why? Because sectors array in school's object is'nt updated correctly:

image
Should be sectors: [0, 1]

The sectors are correctly added:
image

Conclusion:

There's something wrong when adding a new sector in the schools array.

@opujade opujade added the bug Something isn't working label Jul 5, 2024
@opujade
Copy link
Collaborator Author

opujade commented Jul 5, 2024

The same happens when you add a new route to an existing sector

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
1 participant