mirror of
https://gitee.com/BDWare/router-frontend
synced 2025-01-09 17:34:00 +00:00
fix: fix bugs in nodeslistman.js
change variable i from const to let
This commit is contained in:
parent
6e8963ae0a
commit
2fb58a9c27
@ -34,7 +34,7 @@ var listTrustUnits = function (event) {
|
||||
};
|
||||
|
||||
function queryNodeByName(name) {
|
||||
for (const i = 0; i < global.nodeInfo.online.length; i++) {
|
||||
for (let i = 0; i < global.nodeInfo.online.length; i++) {
|
||||
const node = global.nodeInfo.online[i];
|
||||
if (node.nodeName === name)
|
||||
return node;
|
||||
|
Loading…
Reference in New Issue
Block a user