some cleanup thanks to eviltrout

This commit is contained in:
Neil Lalonde 2017-03-14 17:23:19 -04:00
parent 5c923fef58
commit bc31d25132
2 changed files with 15 additions and 16 deletions

View File

@ -7,5 +7,6 @@ export default Ember.Component.extend({
@computed('categories.[].uploaded_logo.url')
anyLogos() {
return this.get("categories").any((c) => { return !Ember.isEmpty(c.get('uploaded_logo.url')); });
return this.get("categories").any(c => !Ember.isEmpty(c.get('uploaded_logo.url')));
}
});

View File

@ -1,5 +1,4 @@
{{#if categories}}
{{#each categories as |c|}}
{{#each categories as |c|}}
<div class='category-box'>
<a href={{c.url}}>
{{#if c.uploaded_logo.url}}
@ -14,5 +13,4 @@
</div>
</a>
</div>
{{/each}}
{{/if}}
{{/each}}