From b4a92a26e1f5f62b134dc000d6b6326cf9234d51 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 21 Dec 2022 16:00:28 -0800 Subject: [PATCH] fix icon null check --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index e6d7fbe..2ed78f3 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -57,7 +57,7 @@ async function populateForm (node, type, vmid) { function addFormLine (fieldset, iconHref, labelText, inputAttr, unitText=null) { let field = document.querySelector(`#${fieldset}`); - if (icon) { + if (iconHref) { let icon = document.createElement("img"); icon.src = iconHref; field.append(icon);