From 04a0202fc3ffe0ff321c2439c3af68a0f7dad5c0 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 3 Jan 2024 14:05:49 +0530 Subject: [PATCH] fix: load cell data from data list --- src/filterRows.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; }