fix add port array index

This commit is contained in:
Maxi Quoß
2022-02-26 00:08:49 +01:00
parent b9342e8d0e
commit 82e0ae01ad

View File

@@ -36,7 +36,7 @@
// add port
if (index === -1) {
customPort.checked = true;
modalDevice.ports.push(customPort);
modalDevice.ports.push(JSON.parse(JSON.stringify(customPort)));
} else {
customPort.checked = modalDevice.ports[index].checked;
modalDevice.ports[index] = JSON.parse(JSON.stringify(customPort));