fix instance populating

This commit is contained in:
Arthur Lu 2022-12-11 20:22:37 -08:00
parent 9dae0cb371
commit 82496039ca

View File

@ -35,6 +35,7 @@ class Node extends HTMLElement {
for (let i = 0; i < qemu.length; i++) { for (let i = 0; i < qemu.length; i++) {
let newInstance = document.createElement("instance-div"); let newInstance = document.createElement("instance-div");
newInstance.data = qemu[i]; newInstance.data = qemu[i];
qemuDiv.append(newInstance);
} }
articleElement.append(qemuDiv); articleElement.append(qemuDiv);
} }
@ -46,6 +47,7 @@ class Node extends HTMLElement {
for (let i = 0; i < lxc.length; i++) { for (let i = 0; i < lxc.length; i++) {
let newInstance = document.createElement("instance-div"); let newInstance = document.createElement("instance-div");
newInstance.data = lxc[i]; newInstance.data = lxc[i];
lxcDiv.append(newInstance);
} }
articleElement.append(lxcDiv); articleElement.append(lxcDiv);
} }