Taichi Masuyama 3 years ago
parent
commit
a3341f76bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/components/PageComment/CommentEditor.tsx

+ 1 - 1
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -271,7 +271,7 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
             <TabPane tabId="comment_editor">
               <Editor
                 ref={editorRef}
-                value={comment}
+                value={commentBody ?? ''} // DO NOT use state
                 isUploadable={isUploadable}
                 isUploadableFile={isUploadableFile}
                 onChange={onChangeHandler}