summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-09 22:30:02 +0300
committerGitHub <noreply@github.com>2020-04-09 22:30:02 +0300
commitc4a7e53661e38c51077749d9c3717545a14b990b (patch)
treec53c887b603f50c101825e502a81d711f178a822 /client/components
parentc6afe8d00705d2b3aafb3924fbe963fffd6a404a (diff)
parentfe6616941505b82d503899e2e27d5a2e95f39db3 (diff)
downloadwekan-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
Diffstat (limited to 'client/components')
-rw-r--r--client/components/activities/activities.js4
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: {