Skip to content

Commit 79c9117

Browse files
committed
Prevent Duplicate Items
1 parent ee96d89 commit 79c9117

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/members.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ class MembersService {
101101
});
102102
const results = await Promise.all(getStatRequests);
103103

104-
return _.flatten(
105-
_.uniqBy(
106-
_.filter(results, _.isArray),
107-
item => item.groupId
108-
)
104+
return _.uniqBy(
105+
_.flatten(
106+
_.filter(results, _.isArray)
107+
),
108+
item => item.groupId
109109
);
110110
}
111111

0 commit comments

Comments
 (0)