Browse Source

fixup! Ref: original & and use fileObj.meta

David Arnold 4 năm trước cách đây
mục cha
commit
5dcf7f55fd
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      client/components/cards/attachments.js

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

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