Skip to content

Commit

Permalink
add missing props to thread update payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Nov 29, 2023
1 parent fbb26dd commit ead2ade
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ export function useComposeForm({ initialDraft, editing }: Props) {
const doPublish = async ({ title, body, category, url }: FormShape) => {
if (editing) {
const { slug } = await threadUpdate(editing, {
title,
body,
category,
status: ThreadStatus.published,
tags: [],
url,
});
router.push(`/t/${slug}`);
} else {
Expand Down

0 comments on commit ead2ade

Please sign in to comment.