Skip to content

A platform for community discussion. Free, open, simple.

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

Robin Wardfbd0d47fcef4
diff --git a/app/assets/javascripts/select-kit/components/select-kit.js.es6 b/app/assets/javascripts/select-kit/components/select-kit.js.es6
index 0e7546bae81..94901a5b70d 100644
--- a/app/assets/javascripts/select-kit/components/select-kit.js.es6
+++ b/app/assets/javascripts/select-kit/components/select-kit.js.es6
@@ -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);