Przeglądaj źródła

remove condition

akira-s 6 lat temu
rodzic
commit
bd48374180

+ 5 - 7
src/client/js/components/PageComment/CommentEditor.jsx

@@ -279,13 +279,11 @@ class CommentEditor extends React.Component {
                     onCtrlEnter={this.postHandler}
                   />
                 </TabPane>
-                { this.state.isMarkdown && (
-                  <TabPane tabId={2}>
-                    <div className="comment-form-preview">
-                      {commentPreview}
-                    </div>
-                  </TabPane>
-                ) }
+                <TabPane tabId={2}>
+                  <div className="comment-form-preview">
+                    {commentPreview}
+                  </div>
+                </TabPane>
               </TabContent>
             </div>
             <div className="comment-submit">