location: fix duplication of port bindings on submit

This commit is contained in:
Girish Ramakrishnan
2026-03-30 09:47:05 +02:00
parent 134472cd4b
commit 4a02e988c1
+1 -1
View File
@@ -115,7 +115,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;