Merge pull request #3424 from hashicorp/b-ui-job-version-for-node-allocs

Expect JobVersion in one of two places
This commit is contained in:
Michael Lange 2017-10-19 12:21:10 -07:00 committed by GitHub
commit 9e37ba846a
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ export default ApplicationSerializer.extend({
return summary; return summary;
}); });
hash.JobVersion = hash.JobVersion != null ? hash.JobVersion : get(hash, 'Job.Version');
// TEMPORARY: https://github.com/emberjs/data/issues/5209 // TEMPORARY: https://github.com/emberjs/data/issues/5209
hash.OriginalJobId = hash.JobID; hash.OriginalJobId = hash.JobID;