Fixed a build error.

Forgot to compile first, distracted by kid.
This commit is contained in:
2025-09-07 18:32:34 -04:00
parent be115e05d6
commit aac6a2eb1c

View File

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