diff --git a/scripts/index.js b/scripts/index.js index cf22b58..c32e699 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -27,13 +27,14 @@ async function populateInstances () { let instanceContainer = document.getElementById("instance-container") - instances = []; + let instances = []; resources.data.forEach((element) => { if (element.type === "lxc" || element.type === "qemu") { let nodeName = element.node; let nodeStatus = resources.find(iem => item.node === nodeName).status; element.node = {name: nodeName, status: nodeStatus}; + instances.push(element); } });