Skip to content

Commit

Permalink
fix when container undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Jan 31, 2025
1 parent 6782015 commit 6e11827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/shared/container-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class ContainerService {
.map(container => container?.project)
.filter((value, index, array) => array.indexOf(value) === index && value);
return projects.map(p => {
return { project: p, containers: containers.filter(c => c.project == p) };
return { project: p, containers: containers.filter(container => container?.project == p) };
});
}
}

0 comments on commit 6e11827

Please sign in to comment.