File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/app/details/cicdHistory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ const WorkerStatus = React.memo(
133
133
// check if finishedOn time is timed out or not
134
134
const isTimedOut = moment ( finishedOn ) . isBefore ( moment ( ) . subtract ( TIMEOUT_VALUE , 'hours' ) )
135
135
// 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 )
137
137
138
138
return (
139
139
< >
@@ -143,7 +143,7 @@ const WorkerStatus = React.memo(
143
143
{ stage === 'DEPLOY' ? (
144
144
< div className = "mr-10" > Message</ div >
145
145
) : 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" >
147
147
< div className = "mr-10" > View worker pod</ div >
148
148
</ NavLink >
149
149
) : (
You can’t perform that action at this time.
0 commit comments