diff --git a/changes/9218-fix-team-policies-stale-time b/changes/9218-fix-team-policies-stale-time new file mode 100644 index 000000000..c9e43e07b --- /dev/null +++ b/changes/9218-fix-team-policies-stale-time @@ -0,0 +1 @@ +- Remove stale time from loading team policies/policy automation so users are provided accurate team data when toggling between teams diff --git a/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx b/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx index ac39f89e8..0bb60e5eb 100644 --- a/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx +++ b/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx @@ -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, } );