fix: cover image - works now

This commit is contained in:
David Arnold 2020-09-16 21:18:07 -05:00
parent e117906418
commit 03c0bb2002
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
2 changed files with 2 additions and 5 deletions

View file

@ -535,10 +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?
return cover && cover.url() && cover;
return Attachments.findOne(this.coverId);
},
checklists() {