mirror of
https://github.com/wekan/wekan.git
synced 2026-01-18 07:25:28 +01:00
fix: thumbnail images now wrok
This commit is contained in:
parent
d58800d67a
commit
3fc4b3207f
2 changed files with 6 additions and 6 deletions
|
|
@ -524,12 +524,12 @@ Cards.helpers({
|
|||
return Attachments.find(
|
||||
{ 'meta.cardId': this.linkedId },
|
||||
{ sort: { uploadedAt: -1 } },
|
||||
);
|
||||
).each();
|
||||
} else {
|
||||
return Attachments.find(
|
||||
{ 'meta.cardId': this._id },
|
||||
{ sort: { uploadedAt: -1 } },
|
||||
);
|
||||
).each();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -538,7 +538,7 @@ Cards.helpers({
|
|||
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.path && cover;
|
||||
return cover && cover.link() && cover;
|
||||
},
|
||||
|
||||
checklists() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue