diff options
Diffstat (limited to 'client/components/activities/activities.js')
-rw-r--r-- | client/components/activities/activities.js | 4 |
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())); |