mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 07:01:47 +01:00
fixup! fix: cover image - works now
This commit is contained in:
parent
e080aea61d
commit
2c175f2be6
2 changed files with 5 additions and 2 deletions
|
|
@ -750,7 +750,10 @@ Cards.helpers({
|
|||
|
||||
cover() {
|
||||
if (!this.coverId) return false;
|
||||
return Attachments.findOne(this.coverId);
|
||||
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;
|
||||
},
|
||||
|
||||
checklists() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue