From 6268ddff1f26751d34ce5c93b45845f8cd9736d0 Mon Sep 17 00:00:00 2001
From: Johanna Szepanski <johanna.szepanski@softhouse.se>
Date: Wed, 20 Nov 2024 15:29:44 +0100
Subject: [PATCH] fixed nested a tag in a tag

---
 src/components/Job/JobDetailsTable.jsx | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/components/Job/JobDetailsTable.jsx b/src/components/Job/JobDetailsTable.jsx
index 23b5c210..b0fd2551 100644
--- a/src/components/Job/JobDetailsTable.jsx
+++ b/src/components/Job/JobDetailsTable.jsx
@@ -30,13 +30,18 @@ const calculateHostText = (job) => {
       <InternalLink
         to={`/hosts/${job.host.hostId}`}
         label={`Host Details, ${job.host.fqdn}`}
+        width="100%"
       >
-        {job.host.fqdn}
+        <EllipsisText>{job.host.fqdn}</EllipsisText>
       </InternalLink>
     );
   }
   // gray out hostname if it is from cache
-  return <Typography color="gray">{job?.host?.fqdn}</Typography>;
+  return (
+    <Typography color="gray">
+      <EllipsisText>{job?.host?.fqdn}</EllipsisText>
+    </Typography>
+  );
 };
 
 const createRow = (job) => {
@@ -52,15 +57,7 @@ const createRow = (job) => {
         <EllipsisText>{job.iocName}</EllipsisText>
       </InternalLink>
     ),
-    host: (
-      <InternalLink
-        to={`/hosts/${job.host?.hostId}`}
-        label={`Host details, ${shapedHostName}`}
-        width="100%"
-      >
-        <EllipsisText>{shapedHostName}</EllipsisText>
-      </InternalLink>
-    ),
+    host: shapedHostName,
     revision: (
       <JobRevisionChip
         gitReference={job.gitReference}
-- 
GitLab