fix: fix bugs in nodeslistman.js

change variable i from const to let
This commit is contained in:
Frank.R.Wu 2021-11-17 14:41:40 +08:00
parent 6e8963ae0a
commit 2fb58a9c27

View File

@ -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;