diff --git a/front/src/applications/operationalStudies/views/SimulationResults.tsx b/front/src/applications/operationalStudies/views/SimulationResults.tsx index 22d30734724..361e7d074d3 100644 --- a/front/src/applications/operationalStudies/views/SimulationResults.tsx +++ b/front/src/applications/operationalStudies/views/SimulationResults.tsx @@ -87,6 +87,7 @@ const SimulationResults = ({ [projectionData] ); + // TODO: remove this after closing https://github.com/OpenRailAssociation/osrd-ui/issues/648 const projectPathTrainResult = useMemo( () => projectionData?.projectedTrains.filter((train) => train.space_time_curves.length > 0) || [], diff --git a/front/src/modules/simulationResult/components/ManchetteWithSpaceTimeChart/ManchetteWithSpaceTimeChart.tsx b/front/src/modules/simulationResult/components/ManchetteWithSpaceTimeChart/ManchetteWithSpaceTimeChart.tsx index 38eb841d017..3a17299628d 100644 --- a/front/src/modules/simulationResult/components/ManchetteWithSpaceTimeChart/ManchetteWithSpaceTimeChart.tsx +++ b/front/src/modules/simulationResult/components/ManchetteWithSpaceTimeChart/ManchetteWithSpaceTimeChart.tsx @@ -66,18 +66,24 @@ const ManchetteWithSpaceTimeChartWrapper = ({ height: `${heightOfManchetteWithSpaceTimeChart - 6}px`, }} > - +new Date(p.departure_time)))} - {...spaceTimeChartProps} - > - {spaceTimeChartProps.paths.map((path) => ( - - ))} - + {/* TODO: remove this condition after closing + https://github.com/OpenRailAssociation/osrd-ui/issues/648 */} + {spaceTimeChartProps.spaceScales.length > 0 && ( + +new Date(p.departure_time)) + )} + {...spaceTimeChartProps} + > + {spaceTimeChartProps.paths.map((path) => ( + + ))} + + )}