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, TrailingNode,
Article Article
] ],
content: props.initialContent ?? null
})) }))
onMount(() => { onMount(() => {

View File

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