From d957fb35ef6200543be9502576b3e55878558d20 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 12:34:22 -0800 Subject: [PATCH] fix instance icon assignment Signed-off-by: Arthur Lu --- scripts/elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/elements.js b/scripts/elements.js index a1ca2d5..702f540 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -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`;