mirror of https://github.com/portainer/portainer
fix(edge/job): init endpoints if it is null [EE-4972] (#8411)
parent
8663de580a
commit
eb8644330e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue