Modif sur le filtre des DZs

This commit is contained in:
Sébastien André
2020-01-28 14:55:25 +01:00
parent 92a657d649
commit 9f3042ed37
2 changed files with 3 additions and 7 deletions

View File

@@ -113,11 +113,9 @@ export class NewJumpComponent implements OnInit {
}
public onChangeDz(event: string) {
if (event.length > 3) {
const filterValue = event.toLowerCase();
const filterValue = event.toLowerCase();
this.listOfFilteredDropZone = this.listOfDropZone;
this.listOfFilteredDropZone = this.listOfFilteredDropZone.filter(option => option.name.toLowerCase().includes(filterValue));
}
this.listOfFilteredDropZone = this.listOfDropZone;
this.listOfFilteredDropZone = this.listOfFilteredDropZone.filter(option => option.name.toLowerCase().includes(filterValue));
}
}