Yuki Takei 7 ani în urmă
părinte
comite
ae3a8d3af5
1 a modificat fișierele cu 2 adăugiri și 7 ștergeri
  1. 2 7
      src/client/js/components/PageComments.js

+ 2 - 7
src/client/js/components/PageComments.js

@@ -42,18 +42,13 @@ export default class PageComments extends React.Component {
   }
   }
 
 
   componentWillMount() {
   componentWillMount() {
-    const pageId = this.props.pageId;
-
-    if (pageId) {
-      this.init();
-    }
-
+    this.init();
     this.retrieveData = this.retrieveData.bind(this);
     this.retrieveData = this.retrieveData.bind(this);
   }
   }
 
 
   init() {
   init() {
     if (!this.props.pageId) {
     if (!this.props.pageId) {
-      return ;
+      return;
     }
     }
 
 
     const layoutType = this.props.crowi.getConfig()['layoutType'];
     const layoutType = this.props.crowi.getConfig()['layoutType'];