diff --git a/front/src/applications/operationalStudies/views/SimulationResults.tsx b/front/src/applications/operationalStudies/views/SimulationResults.tsx
index 91cbcfd0282..5d9205ba243 100644
--- a/front/src/applications/operationalStudies/views/SimulationResults.tsx
+++ b/front/src/applications/operationalStudies/views/SimulationResults.tsx
@@ -116,6 +116,10 @@ const SimulationResults = ({
}
}, [extViewport]);
+ if (!selectedTrainSchedule && !projectionData) {
+ return null;
+ }
+
return (
{/* SIMULATION : STICKY BAR */}
@@ -184,78 +188,81 @@ const SimulationResults = ({
- {/* TRAIN : SPACE SPEED CHART */}
- {selectedTrainRollingStock && trainSimulation && pathProperties && selectedTrainSchedule && (
-
-
-
+ {/* TRAIN : SPACE SPEED CHART */}
+ {selectedTrainRollingStock && trainSimulation && pathProperties && (
+
+ )}
+
+ {/* SIMULATION : MAP */}
+
+
-
- )}
-
- {/* SIMULATION : MAP */}
-
-
-
- {/* TIME STOPS TABLE */}
-
-
{t('timetableOutput')}
-
-
+ {/* TIME STOPS TABLE */}
+
+
{t('timetableOutput')}
+
+
- {/* SIMULATION EXPORT BUTTONS */}
- {selectedTrainSchedule &&
- trainSimulation &&
- pathProperties &&
- selectedTrainRollingStock &&
- operationalPoints &&
- path &&
- infraId && (
-
- )}
+ {/* SIMULATION EXPORT BUTTONS */}
+ {trainSimulation &&
+ pathProperties &&
+ selectedTrainRollingStock &&
+ operationalPoints &&
+ path &&
+ infraId && (
+
+ )}
+ >
+ )}
);
};