Merge pull request #190 from shariquerik/minor-fix-2

fix: minor fix
This commit is contained in:
Shariq Ansari 2024-01-03 14:21:58 +05:30 committed by GitHub
commit 89926b680c
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) {
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];