fix(edge/job): init endpoints if it is null [EE-4972] (#8411)

pull/8415/head
cmeng 2023-01-27 22:08:13 +13:00 committed by GitHub
parent 8663de580a
commit eb8644330e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ export class EdgeJobController {
this.tags = tags;
this.edgeJob.EdgeGroups = this.edgeJob.EdgeGroups ? this.edgeJob.EdgeGroups : [];
this.edgeJob.Endpoints = this.edgeJob.Endpoints ? this.edgeJob.Endpoints : [];
if (results.length > 0) {
const endpointIds = _.map(results, (result) => result.EndpointId);