Skip to content

Commit

Permalink
Read task name off of the state rather than the task
Browse files Browse the repository at this point in the history
It's possible for the task (derived from the job API response)
is nil, or has a nil name field.

Using the task state instead ensures a name every time.
  • Loading branch information
DingoEatingFuzz committed Mar 14, 2018
1 parent 7f2caf5 commit 6e88f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/templates/allocations/allocation/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<tr data-test-task-row={{row.model.task.name}}>
<td data-test-name>
{{#link-to "allocations.allocation.task" row.model.allocation row.model}}
{{row.model.task.name}}
{{row.model.name}}
{{/link-to}}
</td>
<td data-test-state>{{row.model.state}}</td>
Expand Down

0 comments on commit 6e88f38

Please sign in to comment.