Fix the build.
This commit is contained in:
parent
15bcfcd182
commit
6771df128e
|
@ -13,9 +13,11 @@ export default Ember.Controller.extend({
|
|||
types(typeFilters) {
|
||||
const types = [];
|
||||
|
||||
typeFilters.forEach(type => {
|
||||
types.push({ id: type, name: I18n.t(`groups.index.${type}_groups`) });
|
||||
});
|
||||
if (typeFilters) {
|
||||
typeFilters.forEach(type => {
|
||||
types.push({ id: type, name: I18n.t(`groups.index.${type}_groups`) });
|
||||
});
|
||||
}
|
||||
|
||||
return types;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue