Преглед изворни кода

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

Fix incorrect task highlight in executions page
Dorin Paslaru пре 7 година
родитељ
комит
ce70cfc8d3
1 измењених фајлова са 1 додато и 1 уклоњено
  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>