fix(usefilters): fix userFilterTypes alias in setFilter action (#1842)

Fix to correctly alias filterTypes to userFilterTypes in set filter action, so that the filter
autoremove method is called correctly

fix #1831
This commit is contained in:
ta-anders 2020-01-09 23:17:46 +10:00 committed by Tanner Linsley
parent 6ebf3183a0
commit 8ea93b9fed
2 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,13 @@
{ {
"dist/index.js": { "dist/index.js": {
"bundled": 113159, "bundled": 113233,
"minified": 52747, "minified": 52524,
"gzipped": 13786 "gzipped": 13836
}, },
"dist/index.es.js": { "dist/index.es.js": {
"bundled": 111809, "bundled": 112296,
"minified": 51501, "minified": 51688,
"gzipped": 13598, "gzipped": 13670,
"treeshaked": { "treeshaked": {
"rollup": { "rollup": {
"code": 80, "code": 80,

View File

@ -40,7 +40,7 @@ function reducer(state, action, previousState, instance) {
if (action.type === actions.setFilter) { if (action.type === actions.setFilter) {
const { columnId, filterValue } = action const { columnId, filterValue } = action
const { flatColumns, userFilterTypes } = instance const { flatColumns, filterTypes: userFilterTypes } = instance
const column = flatColumns.find(d => d.id === columnId) const column = flatColumns.find(d => d.id === columnId)