diff --git a/Cargo.toml b/Cargo.toml index cc6c9aa..2f06763 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,8 @@ http = "1.1.0" rand = "0.8.5" shuttle-axum = "0.45.0" shuttle-runtime = "0.45.0" -tokio = "1.28.2" tower-http = { version = "0.5.2", features = ["fs", "cors"] } tracing = "0.1.40" -yew = "0.21.0" [workspace] diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index f026f40..8a41701 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -13,13 +13,8 @@ web-sys = { version = "0.3.69", features = [ ] } yew = { version = "0.21.0", features = ["csr"] } yew-router = { version = "0.18.0" } -gloo-console = "0.3.0" wasm-bindgen-futures = "0.4.43" wasm-bindgen = "0.2.93" yewdux = "0.10.0" -surrealdb = "1.5.4" gloo-net = "0.6.0" -serde = { version = "1.0.198", features = ["derive"] } -serde_json = "1.0.116" -regex = "1.10.4" -tracing = "0.1.40" +serde = { version = "1.0.198", features = ["derive"] } \ No newline at end of file diff --git a/frontend/src/pages/home.rs b/frontend/src/pages/home.rs index a95c5e7..ccc83da 100644 --- a/frontend/src/pages/home.rs +++ b/frontend/src/pages/home.rs @@ -287,7 +287,13 @@ pub fn Home() -> Html { set_focus(index); } }, - _ => {}, + _ => { + let index = *curr_index; + let mut values = (*input_values).clone(); + + values[index] = String::new(); + input_values.set(values); + }, } }) };