diff --git a/src/filterRows.js b/src/filterRows.js index 9d9e6a2..3d2df7e 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?.length) { data = data.data[cell.rowIndex]; } else { data = rows[cell.rowIndex];