fix icon null check
This commit is contained in:
parent
0fe83fa2b8
commit
542c22b364
@ -57,7 +57,7 @@ async function populateForm (node, type, vmid) {
|
|||||||
function addFormLine (fieldset, iconHref, labelText, inputAttr, unitText=null) {
|
function addFormLine (fieldset, iconHref, labelText, inputAttr, unitText=null) {
|
||||||
let field = document.querySelector(`#${fieldset}`);
|
let field = document.querySelector(`#${fieldset}`);
|
||||||
|
|
||||||
if (icon) {
|
if (iconHref) {
|
||||||
let icon = document.createElement("img");
|
let icon = document.createElement("img");
|
||||||
icon.src = iconHref;
|
icon.src = iconHref;
|
||||||
field.append(icon);
|
field.append(icon);
|
||||||
|
Loading…
Reference in New Issue
Block a user