Reset current selection after editing multiple roads. This sometimes crashes if the selected lane gets deleted or assigned a new ID. Fixes a crash trying to make the West Green Lake cycletrack.
@@ -148,6 +148,7 @@ impl State<App> for SelectSegments {
}));
}
apply_map_edits(ctx, app, edits);
+ app.primary.current_selection = None;
return Transition::Multi(vec![
Transition::Pop,
Transition::Replace(PopupMsg::new_state(
