Skip to content

Commit

Permalink
Fix npe if filterValue is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-hadzic committed Nov 29, 2016
1 parent 5942680 commit 345d651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const defaultState = (configs = {}) => ({
configs,
});

const filterValueToFilter = (filterValue, columnMap) => filterValue.map(f => {
const filterValueToFilter = (filterValue = [], columnMap) => filterValue.map(f => {
if (_.isString(f)) {
return createTextFilter(f);
}
Expand Down

0 comments on commit 345d651

Please sign in to comment.