Fix undefined host software error (#4495)
This commit is contained in:
@@ -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(
|
||||
(
|
||||
|
||||
@@ -64,7 +64,7 @@ const SoftwareTable = ({
|
||||
<div className="section section--software">
|
||||
<p className="section__header">Software</p>
|
||||
|
||||
{software.length ? (
|
||||
{software?.length ? (
|
||||
<>
|
||||
{software && <SoftwareVulnCount softwareList={software} />}
|
||||
{software && (
|
||||
|
||||
Reference in New Issue
Block a user