fix UI to only show munki card on host details for mac machines (#8657)

This commit is contained in:
Gabriel Hernandez 2022-11-10 14:26:12 +00:00 committed by GitHub
parent 443153a5d5
commit 139a462ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
- fix host details page so munki card only shows for mac hosts

View File

@ -618,7 +618,7 @@ const HostDetailsPage = ({
} }
deviceType={host?.platform === "darwin" ? "macos" : ""} deviceType={host?.platform === "darwin" ? "macos" : ""}
/> />
{macadmins && ( {host?.platform === "darwin" && macadmins && (
<MunkiIssuesCard <MunkiIssuesCard
isLoading={isLoadingHost} isLoading={isLoadingHost}
munkiIssues={macadmins.munki_issues} munkiIssues={macadmins.munki_issues}