Skip to content
Permalink
Browse files

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
  • Loading branch information
ta-anders authored and tannerlinsley committed Jan 9, 2020
1 parent 6ebf318 commit 8ea93b9fed2e4c6853e5db5382560d6ef7efeb98
Showing with 7 additions and 7 deletions.
  1. +6 −6 .size-snapshot.json
  2. +1 −1 src/plugin-hooks/useFilters.js
@@ -1,13 +1,13 @@
{
"dist/index.js": {
"bundled": 113159,
"minified": 52747,
"gzipped": 13786
"bundled": 113233,
"minified": 52524,
"gzipped": 13836
},
"dist/index.es.js": {
"bundled": 111809,
"minified": 51501,
"gzipped": 13598,
"bundled": 112296,
"minified": 51688,
"gzipped": 13670,
"treeshaked": {
"rollup": {
"code": 80,
@@ -40,7 +40,7 @@ function reducer(state, action, previousState, instance) {

if (action.type === actions.setFilter) {
const { columnId, filterValue } = action
const { flatColumns, userFilterTypes } = instance
const { flatColumns, filterTypes: userFilterTypes } = instance

const column = flatColumns.find(d => d.id === columnId)

0 comments on commit 8ea93b9

Please sign in to comment.
You can’t perform that action at this time.