diff --git a/web/src/lib/components/repo/pulls/PullReviewComment.svelte b/web/src/lib/components/repo/pulls/PullReviewComment.svelte index 7c51b4a7b..8d9d044e4 100644 --- a/web/src/lib/components/repo/pulls/PullReviewComment.svelte +++ b/web/src/lib/components/repo/pulls/PullReviewComment.svelte @@ -32,10 +32,8 @@ }: Props = $props(); async function submit(body: string) { - const newComment = { ...comment, body }; - await onedit(newComment); - comment = newComment; - comment.bodyHtml = renderMarkdown(body, markup); + const bodyHtml = renderMarkdown(body, markup); + await onedit({ ...comment, body, bodyHtml }); editing = false; }