diff --git a/src/scripts/js/es6/common/vuecomponents/comments/Comment.js b/src/scripts/js/es6/common/vuecomponents/comments/Comment.js index b25af25e..0aec3ac2 100644 --- a/src/scripts/js/es6/common/vuecomponents/comments/Comment.js +++ b/src/scripts/js/es6/common/vuecomponents/comments/Comment.js @@ -158,11 +158,11 @@ Vue.component('comment', { }, cancleEdit() { this.doHideEditors(); - EventBus.$emit(Events.EDIT_DONE, this.comment.id ); + EventBus.$emit(Events.EDIT_DONE); }, doHideEditors() { this.isReplying = false; this.isUpdating = false; }, } -}); \ No newline at end of file +}); diff --git a/src/scripts/js/es6/common/vuecomponents/comments/CommentEditor.js b/src/scripts/js/es6/common/vuecomponents/comments/CommentEditor.js index fd048bde..6bf929d2 100644 --- a/src/scripts/js/es6/common/vuecomponents/comments/CommentEditor.js +++ b/src/scripts/js/es6/common/vuecomponents/comments/CommentEditor.js @@ -204,7 +204,7 @@ Vue.component('comment-editor', { .fail((err) => {toastr.error(pillar.utils.messageFromError(err), 'Failed to submit comment')}) ) .then(() => { - EventBus.$emit(Events.EDIT_DONE, this.comment._id); + EventBus.$emit(Events.EDIT_DONE); }); }, thenSubmit() {