fix icon null check

This commit is contained in:
Arthur Lu 2022-12-21 16:00:28 -08:00
parent 0fe83fa2b8
commit 542c22b364

View File

@ -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);