* Fix save teams dispatch

* Fix login when MFA is enabled but not active

* Fix JS error caused by using deleted team member
Этот коммит содержится в:
Joram Wilander
2017-04-26 11:07:19 -04:00
коммит произвёл GitHub
родитель 8e6141152b
Коммит 1fef5bf5fe
3 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@@ -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
});
}