Skip to content

Commit

Permalink
No ES6 :(
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Mar 7, 2018
1 parent 6bcfe36 commit f7fe777
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/workflowengine/js/usergroupmembershipplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
if (groupId && groups.length > 0) {
callback({
id: groupId,
displayname: groups.find(group =>group.id === groupId).displayname
displayname: groups.find(function (group) {
return group.id === groupId;
}).displayname
});
} else if (groupId) {
callback({
Expand Down

0 comments on commit f7fe777

Please sign in to comment.