mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:34:16 +08:00
FIX: icon showing as null
This commit is contained in:
parent
01f0b56331
commit
2c284874b4
|
@ -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>`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user