Fix app location config crash if no portbindings are set

This commit is contained in:
Johannes Zellner
2025-04-07 23:04:38 +02:00
parent 3fbdfbe7a4
commit a4586b8bf1
+1 -1
View File
@@ -79,7 +79,7 @@ async function onSubmit() {
// only use enabled ports
const ports = {};
const portsCombined = Object.assign(tcpPorts.value, udpPorts.value);
const portsCombined = Object.assign(tcpPorts.value || {}, udpPorts.value || {});
for (const env in portsCombined) {
if (portsCombined[env].enabled) {
ports[env] = portsCombined[env].value;