Explorar el Código

remove unnecessary variable

itizawa hace 6 años
padre
commit
b20888f2ab

+ 0 - 3
src/client/js/components/PageComment/CommentEditor.jsx

@@ -100,9 +100,6 @@ class CommentEditor extends React.Component {
       this.props.commentContainer.putComment(
       this.props.commentContainer.putComment(
         this.state.comment,
         this.state.comment,
         this.state.isMarkdown,
         this.state.isMarkdown,
-        this.props.replyTo,
-        this.props.commentContainer.state.isSlackEnabled,
-        this.props.commentContainer.state.slackChannels,
         this.props.currentCommentId,
         this.props.currentCommentId,
       )
       )
         .then((res) => {
         .then((res) => {

+ 1 - 2
src/client/js/services/CommentContainer.js

@@ -103,7 +103,7 @@ export default class CommentContainer extends Container {
   /**
   /**
    * Load data of comments and rerender <PageComments />
    * Load data of comments and rerender <PageComments />
    */
    */
-  putComment(comment, isMarkdown, replyTo, isSlackEnabled, slackChannels, commentId) {
+  putComment(comment, isMarkdown, commentId) {
     const { pageId, revisionId } = this.getPageContainer().state;
     const { pageId, revisionId } = this.getPageContainer().state;
 
 
     return this.appContainer.apiPost('/comments.update', {
     return this.appContainer.apiPost('/comments.update', {
@@ -112,7 +112,6 @@ export default class CommentContainer extends Container {
         page_id: pageId,
         page_id: pageId,
         revision_id: revisionId,
         revision_id: revisionId,
         is_markdown: isMarkdown,
         is_markdown: isMarkdown,
-        replyTo,
         comment_id: commentId,
         comment_id: commentId,
       },
       },
     })
     })