Fix UI bug that caused "Show inherited policies" button to be incorrectly hidden (#11140)

This commit is contained in:
gillespi314 2023-04-11 15:43:15 -05:00 committed by GitHub
parent d1cf7e5a44
commit ea10d94d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
- Fixed a UI bug introduced in version 4.30 where the "Show inherited policies" button was not being
displayed.

View File

@ -124,7 +124,7 @@ const ManagePolicyPage = ({
return globalPoliciesAPI.loadAll();
},
{
enabled: isRouteOk && !teamIdForApi,
enabled: isRouteOk,
select: (data) => data.policies,
staleTime: 5000,
}