mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
fixed refreshing team data after edit (#4111)
This commit is contained in:
parent
cc52843921
commit
67b805ac39
1 changed files with 1 additions and 1 deletions
|
|
@ -300,6 +300,7 @@ const TeamDetailsWrapper = ({
|
|||
.then(() => {
|
||||
dispatch(teamActions.loadAll({ perPage: 500 }));
|
||||
dispatch(renderFlash("success", "Team updated"));
|
||||
refetchTeams();
|
||||
// TODO: error handling
|
||||
})
|
||||
.catch(() => null);
|
||||
|
|
@ -349,7 +350,6 @@ const TeamDetailsWrapper = ({
|
|||
);
|
||||
}
|
||||
|
||||
// const hostsCount = currentTeam.host_count;
|
||||
const hostsCount = teams?.length || 1;
|
||||
const hostsTotalDisplay = hostsCount === 1 ? "1 host" : `${hostsCount} hosts`;
|
||||
const userAdminTeams = userTeams.filter(
|
||||
|
|
|
|||
Loading…
Reference in a new issue