Merge pull request #191 from shariquerik/minor-fix-3

fix: minor fix
This commit is contained in:
Shariq Ansari 2024-01-03 14:29:05 +05:30 committed by GitHub
commit 007ec69609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ export default function filterRows(rows, filters, data) {
function getFilterMethod(rows, data, filter) { function getFilterMethod(rows, data, filter) {
const getFormattedValue = cell => { const getFormattedValue = cell => {
let formatter = CellManager.getCustomCellFormatter(cell); let formatter = CellManager.getCustomCellFormatter(cell);
if (data?.data?.length) { if (data && data.data && data.data.length) {
data = data.data[cell.rowIndex]; data = data.data[cell.rowIndex];
} else { } else {
data = rows[cell.rowIndex]; data = rows[cell.rowIndex];