1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

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

This commit is contained in:
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

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);