Solved a problem where it was only getting the first 25 students

This commit is contained in:
Tiago Ribeiro
2024-09-11 11:29:48 +01:00
parent 2a10933206
commit 7bfd000213
2 changed files with 2 additions and 30 deletions

View File

@@ -17,7 +17,6 @@ export const search = (text: string, fields: string[][], rows: any[]) => {
return fields.some((fieldsKeys) => {
const value = getFieldValue(fieldsKeys, row);
if (typeof value === "string") {
console.log(value, searchText, value.toLowerCase().includes(searchText));
return value.toLowerCase().includes(searchText);
}