summaryrefslogtreecommitdiffstats
path: root/client/components/activities/activities.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-23 01:05:59 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-23 11:11:08 +0200
commit2248671b7c022f889584e0931948fe5fbe4f54a6 (patch)
treec046370448ebe18fbd207ee689ebcee998be776a /client/components/activities/activities.js
parentd5eec54c72b755522addc4a839810971ba24f813 (diff)
downloadwekan-2248671b7c022f889584e0931948fe5fbe4f54a6.tar.gz
wekan-2248671b7c022f889584e0931948fe5fbe4f54a6.tar.bz2
wekan-2248671b7c022f889584e0931948fe5fbe4f54a6.zip
Fix the board component data loading
Diffstat (limited to 'client/components/activities/activities.js')
-rw-r--r--client/components/activities/activities.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js
index 6d796199..400e3848 100644
--- a/client/components/activities/activities.js
+++ b/client/components/activities/activities.js
@@ -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()));