diff --git a/bard/src/components.rs b/bard/src/components.rs index 2fe64b2..f5fcfae 100644 --- a/bard/src/components.rs +++ b/bard/src/components.rs @@ -282,6 +282,7 @@ pub fn PostHeader(title: String, author: String, tags: Vec) -> Element #[component] pub fn BlogPost(slug: String, children: Element) -> Element { + let test_slug = slug.clone(); // 1. Fetch the blog post using the slug. let post = use_server_future(move || { @@ -323,7 +324,7 @@ pub fn BlogPost(slug: String, children: Element) -> Element rsx! { p { "Unable to show desired post." } - p { "Trying to get: {slug}" } + p { "Trying to get: {test_slug}" } p { "{e}" } } }