mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-06-06 23:21:58 -04:00
fix add port array index
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user