Skip to content

Commit

Permalink
Merge pull request #191 from shariquerik/minor-fix-3
Browse files Browse the repository at this point in the history
fix: minor fix
  • Loading branch information
shariquerik committed Jan 3, 2024
2 parents 89926b6 + e209ec2 commit 007ec69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filterRows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 007ec69

Please sign in to comment.