use clone
This commit is contained in:
parent
7fa3efb478
commit
bb1739feb8
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ pub fn Home() -> impl IntoView {
|
||||||
let articles_view = move || {
|
let articles_view = move || {
|
||||||
data_resource.and_then(|data| {
|
data_resource.and_then(|data| {
|
||||||
data.iter()
|
data.iter()
|
||||||
.map(|article| view! { <Article data=article.to_owned()/> })
|
.map(|article| view! { <Article data=article.clone()/> })
|
||||||
.collect_view()
|
.collect_view()
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue