This commit is contained in:
RubenPX 2022-04-21 19:59:10 +02:00
parent 454fb891e2
commit a9299077aa
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ async function processSelectedDevices() {
lotsList.push(lots.filter(lot => lot.state == "true").sort((a,b) => a["name"].localeCompare(b["name"])));
lotsList.push(lots.filter(lot => lot.state == "indetermined").sort((a,b) => a["name"].localeCompare(b["name"])));
lotsList.push(lots.filter(lot => lot.state == "false").sort((a,b) => a["name"].localeCompare(b["name"])));
lotsList = lotsList.flat(); // Aplana el array
lotsList = lotsList.flat(); // flat array
listHTML.html("");
lotsList.forEach(lot => templateLot(lot, listHTML, actions));