yusuketk 7 лет назад
Родитель
Сommit
16643a1e66
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      resource/js/components/PageComment/CommentForm.js

+ 1 - 2
resource/js/components/PageComment/CommentForm.js

@@ -123,7 +123,6 @@ export default class CommentForm extends React.Component {
 
 
   render() {
-    const isMarkdown = this.state.isMarkdown;
     const crowi = this.props.crowi;
     const username = crowi.me;
     const user = crowi.findUser(username);
@@ -148,7 +147,7 @@ export default class CommentForm extends React.Component {
                       <textarea className="comment-form-comment form-control" id="comment-form-comment" name="comment" required placeholder="Write comments here..." value={this.state.comment} onChange={this.updateState} >
                       </textarea>
                     </Tab>
-                    { isMarkdown == true &&
+                    { this.state.isMarkdown == true &&
                     <Tab eventKey={2} title="Preview">
                       <div className="comment-form-preview">
                        {commentPreview}