From eda5b0f0cf0fa0d8deb041e09781cbff977f4710 Mon Sep 17 00:00:00 2001 From: Lawton Manning Date: Fri, 9 Feb 2024 14:00:08 -0500 Subject: [PATCH] Fix: healthchecks widget does not respect fields parameter (#2875) --- src/widgets/healthchecks/component.jsx | 28 +++++++++++--------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/widgets/healthchecks/component.jsx b/src/widgets/healthchecks/component.jsx index bcb8d7409..21fb7cb6f 100644 --- a/src/widgets/healthchecks/component.jsx +++ b/src/widgets/healthchecks/component.jsx @@ -63,26 +63,22 @@ export default function Component({ service }) { ); } - const hasUuid = widget?.uuid; + const hasUuid = !!widget?.uuid; const { upCount, downCount } = countStatus(data); - return ( + return hasUuid ? ( - {hasUuid ? ( - <> - - - - ) : ( - <> - - - - )} + + + + ) : ( + + + ); }