No ES6 :(
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
d435c91fda
commit
f1478ea440
|
@ -48,7 +48,9 @@
|
||||||
if (groupId && groups.length > 0) {
|
if (groupId && groups.length > 0) {
|
||||||
callback({
|
callback({
|
||||||
id: groupId,
|
id: groupId,
|
||||||
displayname: groups.find(group =>group.id === groupId).displayname
|
displayname: groups.find(function (group) {
|
||||||
|
return group.id === groupId;
|
||||||
|
}).displayname
|
||||||
});
|
});
|
||||||
} else if (groupId) {
|
} else if (groupId) {
|
||||||
callback({
|
callback({
|
||||||
|
|
Loading…
Reference in New Issue