diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 12c68b5b0..9f7614feb 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -3564,6 +3564,9 @@ async function assignedPortsGlobalApps(appNames) { name: app, }); }); + if (!appsQuery.length) { + return []; + } const query = { $or: appsQuery, }; @@ -3603,7 +3606,7 @@ async function assignedPortsGlobalApps(appNames) { async function ensureApplicationPortsNotUsed(appSpecFormatted, globalCheckedApps) { let currentAppsPorts = await assignedPortsInstalledApps(); - if (globalCheckedApps) { + if (globalCheckedApps && globalCheckedApps.length) { const globalAppsPorts = await assignedPortsGlobalApps(globalCheckedApps); currentAppsPorts = currentAppsPorts.concat(globalAppsPorts); } diff --git a/package.json b/package.json index 433ebf53b..61acbf1cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flux", - "version": "3.13.0", + "version": "3.14.0", "description": "Flux, Your Gateway to a Decentralized World", "repository": { "type": "git",