diff --git a/crates/frontend/src/components/context_card.rs b/crates/frontend/src/components/context_card.rs index 06162cec..e75f5ac1 100644 --- a/crates/frontend/src/components/context_card.rs +++ b/crates/frontend/src/components/context_card.rs @@ -31,9 +31,10 @@ pub fn context_card( .clone() .into_iter() .map(|(k, v)| { - let k = Value::String(k.trim_matches('"').to_string()); - let v = Value::String(format!("{}", v).trim_matches('"').to_string()); - Map::from_iter(vec![(String::from("KEY"), k), (String::from("VALUE"), v)]) + Map::from_iter(vec![ + (String::from("KEY"), Value::String(k.clone())), + (String::from("VALUE"), v), + ]) }) .collect::>>(); diff --git a/crates/frontend/src/components/dropdown.rs b/crates/frontend/src/components/dropdown.rs index 5fbd7c64..7ed950a5 100644 --- a/crates/frontend/src/components/dropdown.rs +++ b/crates/frontend/src/components/dropdown.rs @@ -56,6 +56,8 @@ where DropdownBtnType::Select => "select select-bordered w-[28rem] items-center", }; + let node_ref = create_node_ref::(); + view! {
-