mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 14:18:48 +01:00
Fix the board component data loading
This commit is contained in:
parent
d5eec54c72
commit
2248671b7c
3 changed files with 98 additions and 88 deletions
|
|
@ -55,7 +55,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
cardLink: function() {
|
||||
var card = this.currentData().card();
|
||||
return Blaze.toHTML(HTML.A({
|
||||
return card && Blaze.toHTML(HTML.A({
|
||||
href: card.absoluteUrl(),
|
||||
'class': 'action-card'
|
||||
}, card.title));
|
||||
|
|
@ -69,7 +69,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
attachmentLink: function() {
|
||||
var attachment = this.currentData().attachment();
|
||||
return Blaze.toHTML(HTML.A({
|
||||
return attachment && Blaze.toHTML(HTML.A({
|
||||
href: attachment.url(),
|
||||
'class': 'js-open-attachment-viewer'
|
||||
}, attachment.name()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue