Fleet UI: Remove team policy stale time, remove team policy automation statetime (#9226)

This commit is contained in:
RachelElysia 2023-01-10 11:53:11 -05:00 committed by GitHub
parent d4bf6fd428
commit b8965da82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -0,0 +1 @@
- Remove stale time from loading team policies/policy automation so users are provided accurate team data when toggling between teams

View File

@ -131,7 +131,6 @@ const ManagePolicyPage = ({
setTeamPolicies(data.policies);
setInheritedPolicies(data.inherited_policies);
},
staleTime: 5000,
}
);
@ -167,7 +166,6 @@ const ManagePolicyPage = ({
{
enabled: !!teamId && canAddOrDeletePolicy,
select: (data) => data.team,
staleTime: 5000,
}
);