mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
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
Block a user