From 37e09c2943cea794293614bb0df4d2d4a7328417 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Wed, 3 Apr 2019 17:40:15 +0200 Subject: [PATCH] Remove unused parameter --- src/scripts/js/es6/common/vuecomponents/comments/Comment.js | 4 ++-- .../js/es6/common/vuecomponents/comments/CommentEditor.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() {