mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Update currentTeam after delete on team details page (#8619)
This commit is contained in:
parent
a9761a1a99
commit
52dea440cf
@ -289,6 +289,7 @@ const TeamDetailsWrapper = ({
|
||||
try {
|
||||
await teamsAPI.destroy(currentTeam.id);
|
||||
renderFlash("success", "Team removed");
|
||||
setCurrentTeam(undefined);
|
||||
return router.push(PATHS.ADMIN_TEAMS);
|
||||
} catch (response) {
|
||||
renderFlash("error", "Something went wrong removing the team");
|
||||
|
Loading…
Reference in New Issue
Block a user