mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 20:25:22 +08:00
fixes changeTeam method
This commit is contained in:
parent
d1477179b2
commit
b9492daa69
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ export function getTeamsList() {
|
|||
};
|
||||
}
|
||||
|
||||
export function changeTeam(teamId) {
|
||||
export function changeTeam(team_id) {
|
||||
return dispatch => {
|
||||
axios
|
||||
.post(CHANGE_TEAM_PATH, { team_id: 44 }, { withCredentials: true })
|
||||
.post(CHANGE_TEAM_PATH, { team_id }, { withCredentials: true })
|
||||
.then(response => {
|
||||
const teams = response.data.teams.collection;
|
||||
dispatch(addTeamsData(teams));
|
||||
|
|
Loading…
Add table
Reference in a new issue