Fix filter

This commit is contained in:
Peter Maquiran
2023-02-27 15:40:36 +01:00
parent 38ab60ee62
commit 3e2f6052c4
2 changed files with 11 additions and 7 deletions
+4
View File
@@ -13,6 +13,10 @@ export class FilterPipe implements PipeTransform {
text = text.toLowerCase();
if(Array.isArray(array)) {
array = []
}
return array.filter(item =>{
return item[column].toLowerCase().includes(text);
});