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

ui-manchette: duplicate keys for PathLayer #278

Closed
emersion opened this issue Jul 29, 2024 · 2 comments
Closed

ui-manchette: duplicate keys for PathLayer #278

emersion opened this issue Jul 29, 2024 · 2 comments
Labels
kind:bug Something isn't working

Comments

@emersion
Copy link
Member

usePaths() uses path.departure_time as id, however there is no guarantee that these are unique.

Warning: Encountered two children with the same key, `2024-06-04T08:30:00Z`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
div
V@http://localhost:4000/node_modules/.vite/deps/@osrd-project_ui-manchette.js?v=3aaaf3f8:268:229
div
div
div
O2@http://localhost:4000/node_modules/.vite/deps/@osrd-project_ui-manchette.js?v=3aaaf3f8:505:10
div
div
div
div
SimulationResultsV2@http://localhost:4000/src/applications/operationalStudies/views/v2/SimulationResultsV2.tsx?t=1722264927917:40:29
@emersion emersion added the kind:bug Something isn't working label Jul 29, 2024
@Math-R
Copy link
Contributor

Math-R commented Jul 31, 2024

i think it's the same as
#268

Can you close it ?

@emersion
Copy link
Member Author

Indeed!

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
Projects
None yet
Development

No branches or pull requests

2 participants