get logo_url with one request

This commit is contained in:
scossar 2015-12-29 09:45:40 -08:00
parent cc2093f32b
commit ee4beca12a
1 changed files with 1 additions and 2 deletions

View File

@ -6,8 +6,7 @@ export default Em.Component.extend({
}.property(),
render(buffer) {
const category = this.get('category');
const categoryLogo = category.get('logo_url');
const categoryLogo = this.get('category.logo_url');
buffer.push(`<img class="category-logo" src='${categoryLogo}'/>`);
}
});