Browse Source

fixup! Ref: original & and use fileObj.meta

David Arnold 4 years ago
parent
commit
5dcf7f55fd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/components/cards/attachments.js

+ 2 - 2
client/components/cards/attachments.js

@@ -13,10 +13,10 @@ Template.attachmentsGalery.events({
     event.stopPropagation();
     event.stopPropagation();
   },
   },
   'click .js-add-cover'() {
   'click .js-add-cover'() {
-    Cards.findOne(this.cardId).setCover(this._id);
+    Cards.findOne(this.meta.cardId).setCover(this._id);
   },
   },
   'click .js-remove-cover'() {
   'click .js-remove-cover'() {
-    Cards.findOne(this.cardId).unsetCover();
+    Cards.findOne(this.meta.cardId).unsetCover();
   },
   },
   'click .js-preview-image'(event) {
   'click .js-preview-image'(event) {
     Popup.open('previewAttachedImage').call(this, event);
     Popup.open('previewAttachedImage').call(this, event);