From ec0d9860f7e5cc57ac8d8f4134d2bc61c8317469 Mon Sep 17 00:00:00 2001 From: RubenPX Date: Fri, 13 May 2022 21:33:25 +0200 Subject: [PATCH] change map to forEach --- 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 91ea8dca..45808aab 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -324,7 +324,7 @@ class lotsSearcher { * do search when lot change in the search input */ static doSearch(inputSearch) { - lotsSearcher.lots.map((lot) => { + lotsSearcher.lots.forEach((lot) => { if (lot.querySelector("label").innerText.toLowerCase().includes(inputSearch.toLowerCase())) { lot.style.display = "block"; } else {