1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-01-27 19:41:36 +00:00

Fix hydration error

This commit is contained in:
Felix Ableitner 2025-01-21 15:14:11 +01:00
parent ce5b2f1915
commit 596b1bcb21
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,6 @@ use leptos::prelude::*;
#[component] #[component]
pub fn ArticleHistory() -> impl IntoView { pub fn ArticleHistory() -> impl IntoView {
let article = article_resource(); let article = article_resource();
let edits = article_edits_resource(article);
view! { view! {
<ArticleNav article=article active_tab=ActiveTab::History /> <ArticleNav article=article active_tab=ActiveTab::History />
@ -18,7 +17,7 @@ pub fn ArticleHistory() -> impl IntoView {
view! { "Loading..." } view! { "Loading..." }
}> }>
{move || { {move || {
edits article_edits_resource(article)
.get() .get()
.map(|edits| { .map(|edits| {
view! { <EditList edits=edits for_article=true /> } view! { <EditList edits=edits for_article=true /> }