fix: minor fix

This commit is contained in:
Shariq Ansari 2024-01-03 14:27:19 +05:30
parent 89926b680c
commit e209ec2ed0

View File

@ -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?.length) {
if (data && data.data && data.data.length) {
data = data.data[cell.rowIndex];
} else {
data = rows[cell.rowIndex];