Taichi Masuyama hace 3 años
padre
commit
a3341f76bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}