Skip to content

Commit

Permalink
fix: post editor editing status not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Feb 19, 2024
1 parent 9f3b446 commit fa62f1d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/app/[locale]/dashboard/[subdomain]/editor/post-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fa62f1d

Please sign in to comment.