Editor: Store management of the infraID #5377
Labels
area:front
Work on Standard OSRD Interface modules
kind:bug
Something isn't working
module:infra-editor
Infra Edition
severity:major
Major severity bug
What happened?
In the code editor we use the infraID that is saved in the stored.
But the selector for the infraID is based on the
mode
(ie. stdmc or simulation) of the application, which is never set in editor.Moreover, on the save function (here : https://github.com/osrd-project/osrd/blob/dev/front/src/reducers/editor.ts#L141 ) we take the infraID from simulationConf (ie. statically, without using a selector or the
mode
).This can lead to some weird behavior.
What did you expect to happen?
Solutions => propagate the infraID to the save function
Shall we create a new mode called 'editor' ?
How can we reproduce it (as minimally and precisely as possible)?
NA
What operating system, browser and environment are you using?
NA
OSRD version (top right corner
Account
button >Informations
)a6b9322
The text was updated successfully, but these errors were encountered: