autocomplete now autocompleting data not just id

This commit is contained in:
filipriec
2025-06-16 11:54:54 +02:00
parent 8fcd28832d
commit 9e0fa9ddb1
5 changed files with 149 additions and 89 deletions

View File

@@ -140,12 +140,12 @@ pub fn render_rich_autocomplete_dropdown(
let display_part = values.first().cloned().unwrap_or_default(); // Get the first value
if display_part.is_empty() {
format!("ID: {}", hit.id)
format!("{}", hit.id)
} else {
format!("{} | ID: {}", display_part, hit.id) // ID at the end
format!("{} | {}", display_part, hit.id) // ID at the end
}
} else {
format!("ID: {} (parse error)", hit.id)
format!("{} (parse error)", hit.id)
}
})
.collect();