forked from StudioInfinity/dyna3
Alias the types of element and constraint keys
This will make it easier to change the key types if we change how we store and access elements and constraints.
This commit is contained in:
parent
ed1890bffc
commit
ced001bbfe
3 changed files with 10 additions and 6 deletions
|
@ -150,7 +150,7 @@ pub fn Outline() -> View {
|
|||
ul(class="constraints") {
|
||||
Keyed(
|
||||
list=elt.constraints.into_iter().collect::<Vec<_>>(),
|
||||
view=move |c_key: usize| {
|
||||
view=move |c_key| {
|
||||
let c_state = use_context::<AppState>();
|
||||
let assembly = &c_state.assembly;
|
||||
let cst = assembly.constraints.with(|csts| csts[c_key].clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue