Fix devices length comparation
This commit is contained in:
parent
3da1bdcad1
commit
881f56e3e4
|
@ -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)) {
|
||||
|
|
Reference in New Issue