mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Show inherited policies even with no team policies (#2403)
This commit is contained in:
parent
f44c809d85
commit
4cd5d62708
1 changed files with 1 additions and 5 deletions
|
|
@ -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 a new issue