From aac6a2eb1c8cd3c6e119b01b1b7cf26994e42866 Mon Sep 17 00:00:00 2001 From: Myrddin Dundragon Date: Sun, 7 Sep 2025 18:32:34 -0400 Subject: [PATCH] Fixed a build error. Forgot to compile first, distracted by kid. --- bard/src/components.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}" } } }