fixed reload after disband team (#823)
parent
079a920c2c
commit
5318047794
|
@ -18,10 +18,11 @@ export default function TeamList(props: {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const deleteTeam = (team: Team) => {
|
const deleteTeam = async (team: Team) => {
|
||||||
return fetch("/api/teams/" + team.id, {
|
await fetch("/api/teams/" + team.id, {
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
}).then(props.onChange());
|
});
|
||||||
|
return props.onChange();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue