1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-24 23:10:57 +00:00

only return basic infos

This commit is contained in:
thomasrosen 2022-11-20 12:11:06 +01:00
parent a6fd5d0cbe
commit c2c978d84c

View file

@ -194,7 +194,8 @@ function reshapeTeamData(teams) {
teams = teams
.map(team => {
return {
...team,
id: team.id,
name: team.name,
parent_team_ids: team.parent_team_ids
.filter(parent_team => teams.find(team => team.id === parent_team.id))
.map(parent_team => parent_team.id),