mirror of
https://github.com/Nutomic/ibis.git
synced 2025-02-03 15:51:35 +00:00
Fix hydration error
This commit is contained in:
parent
70e50b6010
commit
14402e6984
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ use leptos_router::hooks::use_params_map;
|
||||||
pub fn EditDiff() -> impl IntoView {
|
pub fn EditDiff() -> impl IntoView {
|
||||||
let params = use_params_map();
|
let params = use_params_map();
|
||||||
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 />
|
||||||
|
@ -19,7 +18,7 @@ pub fn EditDiff() -> impl IntoView {
|
||||||
view! { "Loading..." }
|
view! { "Loading..." }
|
||||||
}>
|
}>
|
||||||
{move || Suspend::new(async move {
|
{move || Suspend::new(async move {
|
||||||
let edits = edits.await;
|
let edits = article_edits_resource(article).await;
|
||||||
let hash = params.get_untracked().get("hash").clone().unwrap();
|
let hash = params.get_untracked().get("hash").clone().unwrap();
|
||||||
let edit = edits.iter().find(|e| e.edit.hash.0.to_string() == hash).unwrap();
|
let edit = edits.iter().find(|e| e.edit.hash.0.to_string() == hash).unwrap();
|
||||||
let label = format!(
|
let label = format!(
|
||||||
|
|
Loading…
Reference in a new issue