Skip to content

Commit d3273d1

Browse files
pr comments
1 parent c6edac6 commit d3273d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/app/details/cicdHistory/TriggerDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const WorkerStatus = React.memo(
133133
// check if finishedOn time is timed out or not
134134
const isTimedOut = moment(finishedOn).isBefore(moment().subtract(TIMEOUT_VALUE, 'hours'))
135135
// finishedOn is 0001-01-01T00:00:00Z when the worker is still running
136-
const showLink = workerPodName.length>0 && (finishedOn === ZERO_TIME_STRING || !isTimedOut)
136+
const showLink = workerPodName && (finishedOn === ZERO_TIME_STRING || !isTimedOut)
137137

138138
return (
139139
<>
@@ -143,7 +143,7 @@ const WorkerStatus = React.memo(
143143
{stage === 'DEPLOY' ? (
144144
<div className="mr-10">Message</div>
145145
) : showLink ? (
146-
<NavLink to={`${WORKER_POD_BASE_URL}/${workerPodName}/logs`} target='_blank' className="anchor">
146+
<NavLink to={`${WORKER_POD_BASE_URL}/${workerPodName}/logs`} target="_blank" className="anchor">
147147
<div className="mr-10">View worker pod</div>
148148
</NavLink>
149149
) : (

0 commit comments

Comments
 (0)