mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-05 04:34:37 +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 => {
|
return dispatch => {
|
||||||
axios
|
axios
|
||||||
.post(CHANGE_TEAM_PATH, { team_id: 44 }, { withCredentials: true })
|
.post(CHANGE_TEAM_PATH, { team_id }, { withCredentials: true })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const teams = response.data.teams.collection;
|
const teams = response.data.teams.collection;
|
||||||
dispatch(addTeamsData(teams));
|
dispatch(addTeamsData(teams));
|
||||||
|
|
Loading…
Add table
Reference in a new issue