mirror of
https://github.com/gosticks/react-table.git
synced 2026-06-28 17:10:01 +00:00
Fixed includes filter (#2001)
The includes was buggy and was looking the opposite way around.
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user