Improve naming of constraint subjects

This commit is contained in:
Aaron Fenyes 2024-11-10 19:36:40 -08:00
parent da008fd090
commit ed1890bffc
3 changed files with 16 additions and 16 deletions

View file

@ -154,10 +154,10 @@ pub fn Outline() -> View {
let c_state = use_context::<AppState>();
let assembly = &c_state.assembly;
let cst = assembly.constraints.with(|csts| csts[c_key].clone());
let other_arg = if cst.args.0 == key {
cst.args.1
let other_arg = if cst.subjects.0 == key {
cst.subjects.1
} else {
cst.args.0
cst.subjects.0
};
let other_arg_label = assembly.elements.with(|elts| elts[other_arg].label.clone());
view! {