diff --git a/api/allocations.go b/api/allocations.go index 6ef6286ad..87f7d9b11 100644 --- a/api/allocations.go +++ b/api/allocations.go @@ -326,7 +326,7 @@ func (a *Allocation) Stub() *AllocationListStub { TaskStates: a.TaskStates, DeploymentStatus: a.DeploymentStatus, FollowupEvalID: a.FollowupEvalID, - NextAllocation: a.JobID, + NextAllocation: a.NextAllocation, RescheduleTracker: a.RescheduleTracker, PreemptedAllocations: a.PreemptedAllocations, PreemptedByAllocation: a.PreemptedByAllocation, diff --git a/ui/app/components/job-status/failed-or-lost.hbs b/ui/app/components/job-status/failed-or-lost.hbs index 422d67ac1..0f0116dc4 100644 --- a/ui/app/components/job-status/failed-or-lost.hbs +++ b/ui/app/components/job-status/failed-or-lost.hbs @@ -14,7 +14,7 @@ @condition={{this.shouldLinkToAllocations}} @route="jobs.job.allocations" @model={{@job}} - @query={{hash scheduling=(concat '["has-been-rescheduled"]') version=(concat '[' @job.latestDeployment.versionNumber ']')}} + @query={{hash scheduling='["has-been-rescheduled"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}} @label="View Allocations" @class="failed-or-lost-link" > @@ -26,7 +26,7 @@ @condition={{this.shouldLinkToAllocations}} @route="jobs.job.allocations" @model={{@job}} - @query={{hash scheduling=(concat '["has-been-restarted"]') version=(concat '[' @job.latestDeployment.versionNumber ']')}} + @query={{hash scheduling='["has-been-restarted"]' version=(concat '[' @job.latestDeployment.versionNumber ']')}} @label="View Allocations" @class="failed-or-lost-link" >