Skip to content

Commit

Permalink
parse json vs plainId
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Jul 31, 2023
1 parent c04f689 commit cd1d0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/app/models/task-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class TaskGroup extends Fragment {
if (this.job.parent.get('id')) {
return this.job.variables?.findBy(
'path',
`nomad/jobs/${JSON.parse(this.job.parent.get('id'))[0]}/${this.name}`
`nomad/jobs/${this.job.parent.get('plainId')}/${this.name}`
);
} else {
return this.job.variables?.findBy(
Expand All @@ -44,7 +44,7 @@ export default class TaskGroup extends Fragment {
if (this.job.parent.get('id')) {
return await this.job.variables?.findBy(
'path',
`nomad/jobs/${JSON.parse(this.job.parent.get('id'))[0]}/${this.name}`
`nomad/jobs/${this.job.parent.get('plainId')}/${this.name}`
);
} else {
return await this.job.variables?.findBy(
Expand Down

0 comments on commit cd1d0f8

Please sign in to comment.