hidden from the user now in the form

This commit is contained in:
filipriec
2025-06-03 18:47:14 +02:00
parent 9540d9ccb9
commit 4ec569342d
7 changed files with 45 additions and 45 deletions

View File

@@ -107,11 +107,8 @@ impl FormState {
&mut self,
response_data: &HashMap<String, String>,
) {
self.values = self.fields
.iter()
.map(|field_name| {
response_data.get(field_name).cloned().unwrap_or_default()
})
self.values = self.fields.iter()
.map(|field| response_data.get(field).cloned().unwrap_or_default())
.collect();
if let Some(id_str) = response_data.get("id") {