Skip to content

Commit 8ea93b9

Browse files
ta-anderstannerlinsley
authored andcommitted
fix(usefilters): fix userFilterTypes alias in setFilter action (TanStack#1842)
Fix to correctly alias filterTypes to userFilterTypes in set filter action, so that the filter autoremove method is called correctly fix TanStack#1831
1 parent 6ebf318 commit 8ea93b9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.size-snapshot.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"dist/index.js": {
3-
"bundled": 113159,
4-
"minified": 52747,
5-
"gzipped": 13786
3+
"bundled": 113233,
4+
"minified": 52524,
5+
"gzipped": 13836
66
},
77
"dist/index.es.js": {
8-
"bundled": 111809,
9-
"minified": 51501,
10-
"gzipped": 13598,
8+
"bundled": 112296,
9+
"minified": 51688,
10+
"gzipped": 13670,
1111
"treeshaked": {
1212
"rollup": {
1313
"code": 80,

src/plugin-hooks/useFilters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function reducer(state, action, previousState, instance) {
4040

4141
if (action.type === actions.setFilter) {
4242
const { columnId, filterValue } = action
43-
const { flatColumns, userFilterTypes } = instance
43+
const { flatColumns, filterTypes: userFilterTypes } = instance
4444

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

0 commit comments

Comments
 (0)