+ // Editable Name Field with Wikidata Integration
+
+
+
+ {move || {
+ let suggestions = wikidata_suggestions.get().to_vec();
+ suggestions.into_iter().map(|suggestion| {
+ // Clone all necessary fields upfront
+ let label_for_click = suggestion.label.clone();
+ let label_for_display = suggestion.label.clone();
+ let description = suggestion.description.clone().unwrap_or_default();
+ let id = suggestion.id.clone();
+
+ view! {
+ -
+ { format!("{} - {}", label_for_display, description) } // Use the cloned version for display
+
+ }
+
+ }).collect::>()
+ }}
+
+ |
+ // Editable Description Field
+
+
+ |
+ // Tag Editor
+
+
+ |
+ // Actions
+
+
+ |
+
+ }
+ }).collect::