From 497d420ef6a3c882f8e871e74409191519f8181c Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 3 Jan 2024 14:12:27 +0530 Subject: [PATCH] chore: condition fix --- src/filterRows.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filterRows.js b/src/filterRows.js index 9d9e6a2..b5a7149 100644 --- a/src/filterRows.js +++ b/src/filterRows.js @@ -33,7 +33,7 @@ export default function filterRows(rows, filters, data) { function getFilterMethod(rows, data, filter) { const getFormattedValue = cell => { let formatter = CellManager.getCustomCellFormatter(cell); - if (data && data.data & data.data.length) { + if (data && data.data && data.data.length) { data = data.data[cell.rowIndex]; } else { data = rows[cell.rowIndex];