What happened?
I create a train with a power restriction
timetable - 2026-08-07T152704.226.json
And I try to edit it in NGE (changing the category here)
I get this error
What did you expect to happen?
I expect no error (it's ok if for now it empties the power restrictions when editing from NGE, @Synar will fix it in another PR). Just expect to be able to edit here (the same as it currently works for a train which has margins)
How can we reproduce it (as minimally and precisely as possible)?
As above
On which environments the bug occurs?
Dev (SNCF)
On which browser the bug occurs?
Google Chrome
OSRD version (top right corner Account button > Informations)
1b10d62
What happened?
I create a train with a power restriction
timetable - 2026-08-07T152704.226.json
And I try to edit it in NGE (changing the category here)
I get this error
What did you expect to happen?
I expect no error (it's ok if for now it empties the power restrictions when editing from NGE, @Synar will fix it in another PR). Just expect to be able to edit here (the same as it currently works for a train which has margins)
How can we reproduce it (as minimally and precisely as possible)?
As above
On which environments the bug occurs?
Dev (SNCF)
On which browser the bug occurs?
Google Chrome
OSRD version (top right corner
Accountbutton >Informations)1b10d62