소스 검색

Fix comment insertion

Maxime Quandalle 9 년 전
부모
커밋
549f8fee3a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      client/components/activities/comments.js

+ 2 - 2
client/components/activities/comments.js

@@ -26,8 +26,8 @@ BlazeComponent.extendComponent({
         let input = this.getInput();
         if ($.trim(input.val())) {
           CardComments.insert({
-            boardId: this.boardId,
-            cardId: this._id,
+            boardId: this.currentData().boardId,
+            cardId: this.currentData()._id,
             text: input.val()
           });
           resetCommentInput(input);