Edit posts from prev site version. (#142)

This commit is contained in:
Ilya Y 2023-07-24 13:49:25 +03:00 committed by GitHub
parent 48948f1141
commit 1ca80cede9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -216,7 +216,8 @@ export const Editor = (props: EditorProps) => {
}),
TrailingNode,
Article
]
],
content: props.initialContent ?? null
}))
onMount(() => {

View File

@ -444,8 +444,8 @@ export const EditView = (props: Props) => {
</div>
<Editor
shoutId={props.shout.id}
initialContent={props.shout.body}
shoutId={form.shoutId}
initialContent={form.body}
onChange={(body) => setForm('body', body)}
/>
</div>