fix icon null check
This commit is contained in:
parent
e37c19de77
commit
b4a92a26e1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user