1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-12-23 18:01:23 +00:00

Fix another hydration error

This commit is contained in:
Felix Ableitner 2024-12-10 10:35:30 +01:00
parent ead72c1ebc
commit 971e3ed80f

View file

@ -54,24 +54,25 @@ pub fn InstanceDetails() -> impl IntoView {
<div>{instance.description}</div>
<h2 class="font-serif text-xl font-bold">Articles</h2>
<ul class="list-none">
{move || {
articles
.get()
.map(|a| {
a.into_iter()
.map(|a| {
view! {
<li>
<a class="text-lg link" href=article_path(&a)>
{article_title(&a)}
</a>
</li>
}
})
.collect::<Vec<_>>()
})
}}
<Suspense>
{move || {
articles
.get()
.map(|a| {
a.into_iter()
.map(|a| {
view! {
<li>
<a class="text-lg link" href=article_path(&a)>
{article_title(&a)}
</a>
</li>
}
})
.collect::<Vec<_>>()
})
}}
</Suspense>
</ul>
</div>
}