Skip to content

Commit ef82519

Browse files
committed
editoast: fix signal projection cache
1 parent 5e3ca65 commit ef82519

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editoast/src/views/train_schedule/projection.rs

+3
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ async fn compute_batch_signal_updates<'a>(
342342
path_blocks: &'a Vec<Identifier>,
343343
trains_details: &'a HashMap<i64, TrainSimulationDetails>,
344344
) -> Result<HashMap<i64, Vec<SignalUpdate>>> {
345+
if trains_details.is_empty() {
346+
return Ok(HashMap::new());
347+
}
345348
let request = SignalUpdatesRequest {
346349
infra: infra.id,
347350
expected_version: infra.version.clone(),

0 commit comments

Comments
 (0)