fix saving, expand code select

This commit is contained in:
Michael Freno
2025-12-21 00:08:03 -05:00
parent 0e1b51af11
commit b0edcf33e9
3 changed files with 160 additions and 10 deletions

View File

@@ -79,8 +79,8 @@ export default function PostForm(props: PostFormProps) {
await api.database.updatePost.mutate({
id: props.postId!,
title: titleVal.replaceAll(" ", "_"),
subtitle: subtitle() || null,
body: body() || null,
subtitle: subtitle() || "",
body: body() || "",
banner_photo:
bannerImageKey !== ""
? bannerImageKey