mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Fix filter
This commit is contained in:
@@ -13,6 +13,10 @@ export class FilterPipe implements PipeTransform {
|
|||||||
|
|
||||||
text = text.toLowerCase();
|
text = text.toLowerCase();
|
||||||
|
|
||||||
|
if(Array.isArray(array)) {
|
||||||
|
array = []
|
||||||
|
}
|
||||||
|
|
||||||
return array.filter(item =>{
|
return array.filter(item =>{
|
||||||
return item[column].toLowerCase().includes(text);
|
return item[column].toLowerCase().includes(text);
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user