Variable consistency
This commit is contained in:
parent
9064fbb537
commit
99bd1844a8
@ -9,9 +9,9 @@ sendHttpRequest("/api/auth/roles/list", "POST", null,
|
|||||||
const ls = JSON.parse(response);
|
const ls = JSON.parse(response);
|
||||||
|
|
||||||
ls.data.forEach(data => {
|
ls.data.forEach(data => {
|
||||||
const postElement = document.createElement("div");
|
const itemElement = document.createElement("div");
|
||||||
postElement.innerHTML = `<li>[${data.id}] ${data.name}: ${data.count} User(s)</li>`;
|
postElement.innerHTML = `<li>[${data.id}] ${data.name}: ${data.count} User(s)</li>`;
|
||||||
lister.appendChild(postElement);
|
lister.appendChild(itemElement);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, "application/json", `Bearer ${token}`
|
}, "application/json", `Bearer ${token}`
|
||||||
|
Loading…
Reference in New Issue
Block a user