From a667b0a6928669d0eebd3936eab061436fc6409f Mon Sep 17 00:00:00 2001 From: Johanna Szepanski <johanna.szepanski@softhouse.se> Date: Wed, 20 Nov 2024 14:26:01 +0100 Subject: [PATCH] added fallback empty array to prevent IOC table from crashing --- src/views/host/details/HostIocSection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/host/details/HostIocSection.jsx b/src/views/host/details/HostIocSection.jsx index c3ed8760..a19228f2 100644 --- a/src/views/host/details/HostIocSection.jsx +++ b/src/views/host/details/HostIocSection.jsx @@ -66,7 +66,7 @@ export const HostIocSection = ({ hostId }) => { IOCs </Typography> <IOCTable - iocs={iocs?.deployedIocs} + iocs={iocs?.deployedIocs || []} loading={loading || !dataReady} rowType="host" pagination={pagination} -- GitLab