change map to forEach

This commit is contained in:
RubenPX 2022-05-13 21:33:25 +02:00
parent 6fef4616e5
commit ec0d9860f7

View file

@ -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 {