From 80be88c6b9b5a838971aaed0789ce3ae90d18e13 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 12:27:15 -0800 Subject: [PATCH] fix variable item typo Signed-off-by: Arthur Lu --- scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/index.js b/scripts/index.js index 3563b3b..90f7444 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -32,7 +32,7 @@ async function populateInstances () { resources.data.forEach((element) => { if (element.type === "lxc" || element.type === "qemu") { let nodeName = element.node; - let nodeStatus = resources.data.find(iem => item.node === nodeName).status; + let nodeStatus = resources.data.find(item => item.node === nodeName).status; element.node = {name: nodeName, status: nodeStatus}; instances.push(element); }