From e11790641819ad5de5b533fff65b3b01ebbac2f9 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Wed, 16 Sep 2020 20:26:54 -0500 Subject: [PATCH] fixup! Ref: original & and use fileObj.meta --- client/components/cards/attachments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index b17d032dd..f13202e18 100644 --- a/client/components/cards/attachments.js +++ b/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);