This commit is contained in:
Osama Malik 2026-04-20 18:26:01 +00:00 committed by GitHub
commit a59b39ef54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,8 +149,8 @@ export function Editor({ post }: EditorProps) {
<TextareaAutosize
autoFocus
id="title"
defaultValue={post.title}
placeholder="Post title"
defaultValue={post.title === "Untitled Post" ? "" : post.title}
placeholder="Untitled Post"
className="w-full resize-none appearance-none overflow-hidden bg-transparent text-5xl font-bold focus:outline-none"
{...register("title")}
/>