fix: post editor editing status not updated

This commit is contained in:
DIYgod
2024-02-20 00:30:45 +08:00
parent 9f3b44614f
commit fa62f1d514
@@ -354,14 +354,11 @@ export default function PostEditor() {
[setView],
)
const onChange = useCallback(
(value: string) => {
updateValue({
content: value,
})
},
[updateValue],
)
const onChange = (value: string) => {
updateValue({
content: value,
})
}
const onPreviewButtonClick = useCallback(() => {
window.open(