Skip to content

Commit

Permalink
Minor improvements to the assigned-to-filter connector
Browse files Browse the repository at this point in the history
  • Loading branch information
romanrizzi committed Dec 4, 2019
1 parent 2f2cbd1 commit c4f878a
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -4,10 +4,12 @@ export default {
},

setupComponent(args, component) {
const groupIDs = component.siteSettings.assign_allowed_on_groups.split("|");
const groupIDs = component.siteSettings.assign_allowed_on_groups
.split("|")
.filter(Boolean);
const groupNames = this.site.groups
.filter(group => groupIDs.includes(group.id.toString()))
.map(group => group.name);
.mapBy("name");
component.set("allowedGroups", groupNames);
}
};

0 comments on commit c4f878a

Please sign in to comment.