mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Don't raise error if I18n key is not found
This commit is contained in:
parent
6cab53abd4
commit
fbd0d47fce
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
|
||||||
switch (typeof none) {
|
switch (typeof none) {
|
||||||
case "string":
|
case "string":
|
||||||
return this.computeContentItem(this.noneValue, {
|
return this.computeContentItem(this.noneValue, {
|
||||||
name: I18n.t(none).htmlSafe()
|
name: (I18n.t(none) || "").htmlSafe()
|
||||||
});
|
});
|
||||||
default:
|
default:
|
||||||
return this.computeContentItem(none);
|
return this.computeContentItem(none);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue