Skip to content

Commit

Permalink
Resolved issue #1129, filtering ignore null values. (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesdrasalves authored and amanmahajan7 committed Mar 29, 2018
1 parent 2c47f02 commit 570230a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-data-grid-addons/src/data/RowFilterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const filterRows = (filters, rows = []) => {
} else if (typeof colFilter.filterTerm === 'string') {
// default filter action
let rowValue = retriever.getValue(r, columnKey);
if (rowValue !== undefined) {
if (rowValue !== undefined && rowValue !== null) {
if (rowValue.toString().toLowerCase().indexOf(colFilter.filterTerm.toLowerCase()) === -1) {
include = include & false;
}
Expand Down

0 comments on commit 570230a

Please sign in to comment.