Skip to content

Commit

Permalink
fix: make reactive-graphql happy for dcos < 2.2
Browse files Browse the repository at this point in the history
it wants all resolvers to return something different from `undefined`. so we
could go with null here. but it also does not hurt to go with an empty array.
  • Loading branch information
pierrebeitz committed Oct 8, 2020
1 parent be86e30 commit bbcf8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/jobs/src/js/types/Job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function JobTypeResolver(job: MetronomeGenericJobResponse): Job {
: null,
command: job.run.cmd,
cpus: job.run.cpus,
dependencies: job.dependencies,
dependencies: job.dependencies || [],
description: isMetronomeJobDetailResponse(job) ? job.description : null,
disk: job.run.disk,
docker:
Expand Down

0 comments on commit bbcf8b2

Please sign in to comment.