diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-09 22:30:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 22:30:02 +0300 |
commit | c4a7e53661e38c51077749d9c3717545a14b990b (patch) | |
tree | c53c887b603f50c101825e502a81d711f178a822 | |
parent | c6afe8d00705d2b3aafb3924fbe963fffd6a404a (diff) | |
parent | fe6616941505b82d503899e2e27d5a2e95f39db3 (diff) | |
download | wekan-c4a7e53661e38c51077749d9c3717545a14b990b.tar.gz wekan-c4a7e53661e38c51077749d9c3717545a14b990b.tar.bz2 wekan-c4a7e53661e38c51077749d9c3717545a14b990b.zip |
Merge pull request #3005 from jtbairdsr/master
fix bug that prevents editing or deleting comments
-rw-r--r-- | client/components/activities/activities.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index 36214e19..5d356f6e 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -180,7 +180,7 @@ BlazeComponent.extendComponent({ { // XXX We should use Popup.afterConfirmation here 'click .js-delete-comment'() { - const commentId = this.currentData().commentId; + const commentId = this.currentData().activity.commentId; CardComments.remove(commentId); }, 'submit .js-edit-comment'(evt) { @@ -188,7 +188,7 @@ BlazeComponent.extendComponent({ const commentText = this.currentComponent() .getValue() .trim(); - const commentId = Template.parentData().commentId; + const commentId = Template.parentData().activity.commentId; if (commentText) { CardComments.update(commentId, { $set: { |