diff --git a/static/js/roles.js b/static/js/roles.js index 4d90edc..ef1f509 100644 --- a/static/js/roles.js +++ b/static/js/roles.js @@ -9,9 +9,9 @@ sendHttpRequest("/api/auth/roles/list", "POST", null, const ls = JSON.parse(response); ls.data.forEach(data => { - const postElement = document.createElement("div"); + const itemElement = document.createElement("div"); postElement.innerHTML = `
  • [${data.id}] ${data.name}: ${data.count} User(s)
  • `; - lister.appendChild(postElement); + lister.appendChild(itemElement); }); } }, "application/json", `Bearer ${token}`