Show inherited policies even with no team policies (#2403)

This commit is contained in:
RachelElysia 2021-10-06 13:30:17 -04:00 committed by GitHub
parent f44c809d85
commit 4cd5d62708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}>