fix instance icon assignment

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 12:34:22 -08:00
parent 72e0407be2
commit 93490a7e65

View File

@ -47,7 +47,7 @@ class Instance extends HTMLElement {
}
let nodeImg = this.shadowElement.querySelector("#node-status");
if (data.status === "undefined") {
if (data.status === "unknown") {
data.status = "stopped";
}
nodeImg.src = `images/nodes/${data.node.status}.svg`;