mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Show inherited policies even with no team policies (#2403)
This commit is contained in:
parent
f44c809d85
commit
4cd5d62708
@ -329,11 +329,7 @@ const ManagePolicyPage = (managePoliciesPageProps: {
|
||||
|
||||
// If there aren't any policies of if there are loading errors, we don't show the inherited policies button.
|
||||
const showInheritedPoliciesButton =
|
||||
!!selectedTeamId &&
|
||||
!!teamPolicies?.length &&
|
||||
!!globalPolicies?.length &&
|
||||
!isGlobalPoliciesError &&
|
||||
!isTeamPoliciesError;
|
||||
!!selectedTeamId && !!globalPolicies?.length && !isGlobalPoliciesError;
|
||||
|
||||
return (
|
||||
<div className={baseClass}>
|
||||
|
Loading…
Reference in New Issue
Block a user