Skip to content

Commit

Permalink
Merge pull request #190 from shariquerik/minor-fix-2
Browse files Browse the repository at this point in the history
fix: minor fix
  • Loading branch information
shariquerik authored Jan 3, 2024
2 parents 89d3149 + bbb4eb1 commit 89926b6
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.data && data.data.length) {
if (data?.data?.length) {
data = data.data[cell.rowIndex];
} else {
data = rows[cell.rowIndex];
Expand Down

0 comments on commit 89926b6

Please sign in to comment.