Fix devices length comparation

This commit is contained in:
RubenPX 2022-05-11 10:42:32 +02:00
parent 3da1bdcad1
commit 881f56e3e4
1 changed files with 3 additions and 3 deletions

View File

@ -91,10 +91,10 @@ window.addEventListener("DOMContentLoaded", () => {
: "<a href=\"#\" class=\"ml-3\">Cancel selection</a>"
}`;
if (TableController.getAllDevices().length > 0) {
alertInfoDevices.classList.remove("d-none");
} else {
if (TableController.getSelectedDevices().length <= 0) {
alertInfoDevices.classList.add("d-none")
} else {
alertInfoDevices.classList.remove("d-none");
}
if (isAllChecked.every(bool => bool == true)) {