mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Fixed includes filter (#2001)
The includes was buggy and was looking the opposite way around.
This commit is contained in:
parent
60d8244f58
commit
e935d349e7
@ -42,7 +42,7 @@ export const includes = (rows, ids, filterValue) => {
|
||||
return rows.filter(row => {
|
||||
return ids.some(id => {
|
||||
const rowValue = row.values[id]
|
||||
return filterValue.includes(rowValue)
|
||||
return rowValue.includes(filterValue)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user