FIX: Don't raise error if I18n key is not found

This commit is contained in:
Robin Ward 2018-01-04 14:08:21 -05:00
parent 6cab53abd4
commit fbd0d47fce

View File

@ -192,7 +192,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
switch (typeof none) {
case "string":
return this.computeContentItem(this.noneValue, {
name: I18n.t(none).htmlSafe()
name: (I18n.t(none) || "").htmlSafe()
});
default:
return this.computeContentItem(none);