diff options
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/team_store.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/stores/team_store.jsx b/webapp/stores/team_store.jsx index 1d3d5ff25..0317379fc 100644 --- a/webapp/stores/team_store.jsx +++ b/webapp/stores/team_store.jsx @@ -185,12 +185,14 @@ class TeamStoreClass extends EventEmitter { } saveTeam(team) { - this.saveTeams([team]); + const teams = {}; + teams[team.id] = team; + this.saveTeams(teams); } saveTeams(teams) { store.dispatch({ - type: TeamTypes.RECEIVED_TEAMS_LIST, + type: TeamTypes.RECEIVED_TEAMS, data: teams }); } |