From 2fb58a9c27eaadfb7f34d51ee90b8070afe09910 Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Wed, 17 Nov 2021 14:41:40 +0800 Subject: [PATCH] fix: fix bugs in nodeslistman.js change variable i from const to let --- src/js/nodeslistman.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/nodeslistman.js b/src/js/nodeslistman.js index 84dafb9..caf41cd 100644 --- a/src/js/nodeslistman.js +++ b/src/js/nodeslistman.js @@ -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;