front: GET is broken sometimes #10496
Labels
area:front
Work on Standard OSRD Interface modules
kind:bug
Something isn't working
severity:minor
Minor severity bug
What happened?
In this PR, I had to check that the data given to the GET was not empty, otherwise the application would crash (
projectedData?.spaceTimeData.length > 0
, see @emersion's comment here).Actually, the GET should not crash if we give empty data to it. We need to investigate what happens here. To reproduce, you can simply remove the condition
projectedData?.spaceTimeData.length > 0
inStdcmDebugResults
and try to open a space time chart in the stdcm pageWhat did you expect to happen?
The GET should not make the application crash
How can we reproduce it (as minimally and precisely as possible)?
projectedData?.spaceTimeData.length > 0
in StdcmDebugResultsOn which environments the bug occurs?
Local
On which browser the bug occurs?
Firefox
OSRD version (top right corner
Account
button >Informations
).
The text was updated successfully, but these errors were encountered: