From 78af071fceae054933f3ced7bbc7905cdfb2a220 Mon Sep 17 00:00:00 2001 From: gillespi314 <73313222+gillespi314@users.noreply.github.com> Date: Mon, 15 Aug 2022 15:09:27 -0500 Subject: [PATCH] Handle invalid time values on host details page (#7217) --- .../details/DeviceUserPage/DeviceUserPage.tsx | 5 +- .../HostDetailsPage/HostDetailsPage.tsx | 7 +- .../details/cards/HostSummary/HostSummary.tsx | 2 +- frontend/utilities/helpers.ts | 70 +++++++++++++------ 4 files changed, 57 insertions(+), 27 deletions(-) diff --git a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx index f33d1f7721..9a0e96f660 100644 --- a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx +++ b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx @@ -229,6 +229,7 @@ const DeviceUserPage = ({ const statusClassName = classnames("status", `status--${host?.status}`); const renderDeviceUserPage = () => { + const failing_policies_count = titleData?.issues; return (