Skip to content

Commit

Permalink
chore: simplify post_create arguments by using shorthand for title an…
Browse files Browse the repository at this point in the history
…d content in publisher component
  • Loading branch information
Michael-Liendo committed Sep 27, 2024
1 parent a726f72 commit 1a76217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/web/src/components/publisher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ pub fn Publisher() -> impl IntoView {
.unwrap()
.post
.post_create(PostCreateInput {
title: title,
content: content,
title,
content,
parent_id: None,
})
.await
Expand Down

0 comments on commit 1a76217

Please sign in to comment.