summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/cards.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index f4bb464c..757772f3 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -535,6 +535,7 @@ Cards.helpers({
},
cover() {
+ if (!this.coverId) return false;
const cover = Attachments.findOne(this.coverId);
// if we return a cover before it is fully stored, we will get errors when we try to display it
// todo XXX we could return a default "upload pending" image in the meantime?