diff --git a/src/filterRows.js b/src/filterRows.js index 8560918..9d9e6a2 100644 --- a/src/filterRows.js +++ b/src/filterRows.js @@ -33,8 +33,8 @@ export default function filterRows(rows, filters, data) { function getFilterMethod(rows, data, filter) { const getFormattedValue = cell => { let formatter = CellManager.getCustomCellFormatter(cell); - if (data && data.constructor.name === 'DataManager') { - data = data.getData(cell.rowIndex); + if (data && data.data & data.data.length) { + data = data.data[cell.rowIndex]; } else { data = rows[cell.rowIndex]; }