Skip to content

Commit

Permalink
FIX: CustomService installation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays committed Apr 12, 2024
1 parent aeb80c1 commit a160f22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions launcher/src/backend/ServiceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ export class ServiceManager {
}

updateInfoForDependencies(task, services, newServices, ELInstalls, CLInstalls, PInstalls) {
if (task.data.executionClients.length > 0) {
if (task.data.executionClients?.length > 0) {
task.data.executionClients = task.data.executionClients.map((ec) => {
let id = ec.config ? ec.config.serviceID : ec.id;
if (id) {
Expand All @@ -1185,7 +1185,7 @@ export class ServiceManager {
return newServices.find((s) => s.id === id);
});
}
if (task.data.consensusClients.length > 0) {
if (task.data.consensusClients?.length > 0) {
task.data.consensusClients = task.data.consensusClients.map((cc) => {
let id = cc.config ? cc.config.serviceID : cc.id;
if (id) {
Expand All @@ -1195,7 +1195,7 @@ export class ServiceManager {
return newServices.find((s) => s.id === id);
});
}
if (task.data.otherServices.length > 0) {
if (task.data.otherServices?.length > 0) {
task.data.otherServices = task.data.otherServices.map((bc) => {
let id = bc.config ? bc.config.serviceID : bc.id;
if (id) {
Expand Down

0 comments on commit a160f22

Please sign in to comment.