Clear the regulator list when switching examples
All checks were successful
/ test (pull_request) Successful in 2m21s

This commit is contained in:
Aaron Fenyes 2025-04-10 12:14:37 -07:00
parent 81e423fcbe
commit e1952d7d52

View file

@ -148,6 +148,7 @@ pub fn AddRemove() -> View {
let assembly = &state.assembly;
// clear state
assembly.regulators.update(|regs| regs.clear());
assembly.elements.update(|elts| elts.clear());
assembly.elements_by_id.update(|elts_by_id| elts_by_id.clear());
state.selection.update(|sel| sel.clear());