FIX: icon showing as null

This commit is contained in:
Joffrey JAFFEUX 2017-09-11 22:47:47 +02:00 committed by GitHub
parent 01f0b56331
commit 2c284874b4

View File

@ -86,7 +86,10 @@ export default Ember.Component.extend({
return (rowComponent) => {
let template = "";
template += rowComponent.icon();
const icon = rowComponent.icon()
if (icon) {
template += icon;
}
const text = rowComponent.get(`content.${this.get("textKey")}`);
template += `<p class="text">${Handlebars.escapeExpression(text)}</p>`;