From 872a681201eb55f9817ac2885360a4798826123f Mon Sep 17 00:00:00 2001
From: Sky Brewer <sky.brewer@ess.eu>
Date: Tue, 28 May 2024 15:34:28 +0200
Subject: [PATCH] Remove empty string and colon

Should display EmptyValue if hostname missing,
and only EllipsisText with hostname otherwise
---
 src/components/IOC/IOCTable/IOCTable.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/IOC/IOCTable/IOCTable.js b/src/components/IOC/IOCTable/IOCTable.js
index ad960c0d..7508377a 100644
--- a/src/components/IOC/IOCTable/IOCTable.js
+++ b/src/components/IOC/IOCTable/IOCTable.js
@@ -77,8 +77,11 @@ function createHostLink(host) {
         label={`Host details, ${host?.hostName}`}
         width="100%"
       >
-        host?.hostName ? <EllipsisText>{host?.hostName}</EllipsisText> :{" "}
-        <EmptyValue />
+        {host?.hostName ? (
+          <EllipsisText>{host.hostName}</EllipsisText>
+        ) : (
+          <EmptyValue />
+        )}
       </InternalLink>
     );
   }
-- 
GitLab