Explorar o código

fixup! Ref: original & and use fileObj.meta

David Arnold %!s(int64=4) %!d(string=hai) anos
pai
achega
5dcf7f55fd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);