location: fix duplication of port bindings on submit
This commit is contained in:
@@ -115,7 +115,7 @@ async function onSubmit() {
|
|||||||
|
|
||||||
// only use enabled ports
|
// only use enabled ports
|
||||||
const ports = {};
|
const ports = {};
|
||||||
const portsCombined = Object.assign(tcpPorts.value || {}, udpPorts.value || {});
|
const portsCombined = Object.assign({}, tcpPorts.value || {}, udpPorts.value || {});
|
||||||
for (const env in portsCombined) {
|
for (const env in portsCombined) {
|
||||||
if (portsCombined[env].enabled) {
|
if (portsCombined[env].enabled) {
|
||||||
ports[env] = portsCombined[env].value;
|
ports[env] = portsCombined[env].value;
|
||||||
|
|||||||
Reference in New Issue
Block a user