shinoka7 6 лет назад
Родитель
Сommit
749ef5c240

+ 0 - 1
src/client/js/components/PageComment/CommentForm.jsx

@@ -123,7 +123,6 @@ export default class CommentForm extends React.Component {
       .then((res) => {
         if (this.props.onPostComplete != null) {
           this.props.onPostComplete(res.comment);
-          this.forceUpdate();
         }
         this.setState({
           comment: '',

+ 0 - 3
src/client/js/components/PageComments.js

@@ -22,8 +22,6 @@ class PageComments extends React.Component {
   constructor(props) {
     super(props);
 
-    this.elem = React.createRef();
-
     this.state = {
       // desc order array
       comments: [],
@@ -259,7 +257,6 @@ class PageComments extends React.Component {
 }
 
 PageComments.propTypes = {
-  t: PropTypes.func.isRequired,
   pageId: PropTypes.string,
   pagePath: PropTypes.string,
   onPostComplete: PropTypes.func,