Fixed a build error.
Forgot to compile first, distracted by kid.
This commit is contained in:
@ -282,6 +282,7 @@ pub fn PostHeader(title: String, author: String, tags: Vec<String>) -> 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}" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user