@@ -102,6 +102,9 @@ class CommentEditor extends React.Component {
event.preventDefault();
}
+ if (this.props.reEdit) {
+ this.props.commentContainer.putComment();
+ }
this.props.commentContainer.postComment(
this.state.comment,
@@ -100,6 +100,13 @@ export default class CommentContainer extends Container {
});
+ /**
+ * Load data of comments and rerender <PageComments />
+ */
+ putComment() {
+ console.log('ここはCommentContainer');
+
deleteComment(comment) {
return this.appContainer.apiPost('/comments.remove', { comment_id: comment._id })
.then((res) => {