summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-04-26 11:07:19 -0400
committerGitHub <noreply@github.com>2017-04-26 11:07:19 -0400
commit1fef5bf5fe37f161959fbef5d53deccf0168cced (patch)
tree30a9fe10147c48587600be8a5b88c5ae5ac5d558 /webapp/stores
parent8e6141152bd0978bfeb24dbfff05972f4d17fd08 (diff)
downloadchat-1fef5bf5fe37f161959fbef5d53deccf0168cced.tar.gz
chat-1fef5bf5fe37f161959fbef5d53deccf0168cced.tar.bz2
chat-1fef5bf5fe37f161959fbef5d53deccf0168cced.zip
Redux bug fixes (#6243)
* Fix save teams dispatch * Fix login when MFA is enabled but not active * Fix JS error caused by using deleted team member
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/team_store.jsx6
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
});
}