Skip to content

Commit 3ee8d11

Browse files
committed
front: display simulation results only if a train is selected or get data is ready
Signed-off-by: Clara Ni <[email protected]>
1 parent fe3b339 commit 3ee8d11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

front/src/applications/operationalStudies/views/SimulationResults.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ const SimulationResults = ({
116116
}
117117
}, [extViewport]);
118118

119+
if (!selectedTrainSchedule && !projectionData) {
120+
return null;
121+
}
122+
119123
return (
120124
<div className="simulation-results">
121125
{/* SIMULATION : STICKY BAR */}

0 commit comments

Comments
 (0)