diff --git a/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx index cbccca72e0..bf988194f1 100644 --- a/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx @@ -298,8 +298,8 @@ const HostDetailsPage = ({ } return; // exit early because refectch is pending so we can avoid unecessary steps below } - setHostSoftware(returnedHost.software); - setUsersState(returnedHost.users); + setHostSoftware(returnedHost.software || []); + setUsersState(returnedHost.users || []); if (returnedHost.pack_stats) { const packStatsByType = returnedHost.pack_stats.reduce( ( diff --git a/frontend/pages/hosts/HostDetailsPage/SoftwareTab/SoftwareTab.tsx b/frontend/pages/hosts/HostDetailsPage/SoftwareTab/SoftwareTab.tsx index ca976ecc6a..2e5b59a78c 100644 --- a/frontend/pages/hosts/HostDetailsPage/SoftwareTab/SoftwareTab.tsx +++ b/frontend/pages/hosts/HostDetailsPage/SoftwareTab/SoftwareTab.tsx @@ -64,7 +64,7 @@ const SoftwareTable = ({
Software
- {software.length ? ( + {software?.length ? ( <> {software &&