diff --git a/app/assets/javascripts/discourse/controllers/groups.js.es6 b/app/assets/javascripts/discourse/controllers/groups.js.es6 index ab876339ae3..35cfbf1dc38 100644 --- a/app/assets/javascripts/discourse/controllers/groups.js.es6 +++ b/app/assets/javascripts/discourse/controllers/groups.js.es6 @@ -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; },