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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8e6141152b
Коммит
1fef5bf5fe
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user