summaryrefslogtreecommitdiffstats
path: root/client/components/activities/activities.js
diff options
context:
space:
mode:
authorJonathan Baird <jonathan@smithbox.com>2020-04-09 12:46:24 -0600
committerJonathan Baird <jonathan@smithbox.com>2020-04-09 12:46:24 -0600
commitfe6616941505b82d503899e2e27d5a2e95f39db3 (patch)
treeed5078ed8ed5123dc08840666c456425928e1ac7 /client/components/activities/activities.js
parent121686a928029609e46740d78e129d91fae432e5 (diff)
downloadwekan-fe6616941505b82d503899e2e27d5a2e95f39db3.tar.gz
wekan-fe6616941505b82d503899e2e27d5a2e95f39db3.tar.bz2
wekan-fe6616941505b82d503899e2e27d5a2e95f39db3.zip
fix bug that prevents editing or deleting comments
Diffstat (limited to 'client/components/activities/activities.js')
-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: {