mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 05:15:25 +02:00
fix(edge/job): init endpoints if it is null [EE-4972] (#8411)
This commit is contained in:
parent
8663de580a
commit
eb8644330e
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ export class EdgeJobController {
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
|
|
||||||
this.edgeJob.EdgeGroups = this.edgeJob.EdgeGroups ? this.edgeJob.EdgeGroups : [];
|
this.edgeJob.EdgeGroups = this.edgeJob.EdgeGroups ? this.edgeJob.EdgeGroups : [];
|
||||||
|
this.edgeJob.Endpoints = this.edgeJob.Endpoints ? this.edgeJob.Endpoints : [];
|
||||||
|
|
||||||
if (results.length > 0) {
|
if (results.length > 0) {
|
||||||
const endpointIds = _.map(results, (result) => result.EndpointId);
|
const endpointIds = _.map(results, (result) => result.EndpointId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue