fix trying to render cdn image of undefined

This commit is contained in:
Neil Lalonde 2017-03-13 16:22:37 -04:00
parent 6d7e968e30
commit 3dab932b96
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@
{{#each categories as |c|}}
<div class='category-box'>
<a href={{c.url}}>
{{cdn-img src=c.uploaded_logo.url class="logo"}}
{{#if c.uploaded_logo.url}}
{{cdn-img src=c.uploaded_logo.url class="logo"}}
{{/if}}
<div class='details'>
<h3>{{c.name}}</h3>