Merge pull request #12340 from nextcloud/ie11-function-fix

Remove arrow function for ie compatibility
This commit is contained in:
Roeland Jago Douma 2018-11-07 20:25:02 +01:00 committed by GitHub
commit 3e8ea395e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@ OC.Settings = _.extend(OC.Settings, {
selection = _.map((groups || []).split('|').sort(), function(groupId) {
return {
id: groupId,
displayname: results.find(group => group.id === groupId).displayname
displayname: results.find(function (group) {
return group.id === groupId;
}).displayname
};
});
} else if (groups) {