Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-03-20 18:02:48 +08:00
parent 15bcfcd182
commit 6771df128e
1 changed files with 5 additions and 3 deletions

View File

@ -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;
},