change map to forEach
This commit is contained in:
parent
6fef4616e5
commit
ec0d9860f7
|
@ -324,7 +324,7 @@ class lotsSearcher {
|
||||||
* do search when lot change in the search input
|
* do search when lot change in the search input
|
||||||
*/
|
*/
|
||||||
static doSearch(inputSearch) {
|
static doSearch(inputSearch) {
|
||||||
lotsSearcher.lots.map((lot) => {
|
lotsSearcher.lots.forEach((lot) => {
|
||||||
if (lot.querySelector("label").innerText.toLowerCase().includes(inputSearch.toLowerCase())) {
|
if (lot.querySelector("label").innerText.toLowerCase().includes(inputSearch.toLowerCase())) {
|
||||||
lot.style.display = "block";
|
lot.style.display = "block";
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in New Issue