use clone

This commit is contained in:
Adam 2024-01-18 23:46:43 -05:00
parent 7fa3efb478
commit bb1739feb8

View file

@ -13,7 +13,7 @@ pub fn Home() -> impl IntoView {
let articles_view = move || {
data_resource.and_then(|data| {
data.iter()
.map(|article| view! { <Article data=article.to_owned()/> })
.map(|article| view! { <Article data=article.clone()/> })
.collect_view()
})
};