Taichi Masuyama 3 лет назад
Родитель
Сommit
a3341f76bc
1 измененных файлов с 1 добавлено и 1 удалено
  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}