Explorar o código

Merge pull request #357 from smiclea/fix-task-highlight

Fix incorrect task highlight in executions page
Dorin Paslaru %!s(int64=7) %!d(string=hai) anos
pai
achega
ce70cfc8d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/molecules/TaskItem/TaskItem.jsx

+ 1 - 1
src/components/molecules/TaskItem/TaskItem.jsx

@@ -222,7 +222,7 @@ class TaskItem extends React.Component<Props> {
           let messageProgress = this.getMessageProgress(update.message)
 
           return (
-            <ProgressUpdate key={i} secondary={i > 0 || this.props.item.status !== 'RUNNING'}>
+            <ProgressUpdate key={i} secondary={i < this.props.item.progress_updates.length - 1 || this.props.item.status !== 'RUNNING'}>
               <ProgressUpdateDate width={this.props.columnWidths[0]}>
                 <span>{DateUtils.getLocalTime(update.created_at).format('YYYY-MM-DD HH:mm:ss')}</span>
               </ProgressUpdateDate>