From a9299077aa29bb34c133e985af597c21258be62b Mon Sep 17 00:00:00 2001 From: RubenPX Date: Thu, 21 Apr 2022 19:59:10 +0200 Subject: [PATCH] fix typo --- ereuse_devicehub/static/js/main_inventory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 54321b3e..ce107ac8 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -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));