UI – Specify rendering condition for host > software > munki card (#15921)

## Addresses #15577 

- [x] Changes file added for user-visible changes in `changes/`
- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
Jacob Shandling 2024-01-04 13:31:02 -08:00 committed by GitHub
parent 18d830a126
commit 89e687545e
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 @@
- Fix a bug where the host details > software > munki issues section was sometimes displayed when
Munki was not in use

View file

@ -760,7 +760,7 @@ const HostDetailsPage = ({
pathname={pathname}
pathPrefix={PATHS.HOST_SOFTWARE(host?.id || 0)}
/>
{host?.platform === "darwin" && macadmins && (
{host?.platform === "darwin" && macadmins?.munki?.version && (
<MunkiIssuesCard
isLoading={isLoadingHost}
munkiIssues={macadmins.munki_issues}