Fix app location config crash if no portbindings are set
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user