|
@@ -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'];
|