From 345d6517eee081c46430b2bd7d031bb8cec8cabc Mon Sep 17 00:00:00 2001 From: Amir Hadzic Date: Tue, 29 Nov 2016 10:54:00 +0100 Subject: [PATCH] Fix npe if filterValue is not provided --- src/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reducer.js b/src/reducer.js index 3d4605b..91098b9 100644 --- a/src/reducer.js +++ b/src/reducer.js @@ -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); }