From e935d349e783cd9e1b9d44f265b398fee2c133a1 Mon Sep 17 00:00:00 2001 From: alauzon Date: Wed, 18 Mar 2020 17:37:59 -0400 Subject: [PATCH] Fixed includes filter (#2001) The includes was buggy and was looking the opposite way around. --- src/filterTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filterTypes.js b/src/filterTypes.js index d436e91..83fbac9 100644 --- a/src/filterTypes.js +++ b/src/filterTypes.js @@ -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) }) }) }