Skip to content

Commit

Permalink
fix(useFilters): Honor column level disableFilters by setting `canF…
Browse files Browse the repository at this point in the history
…ilters` correct value (TanStack#1427)

* correcting typos

* [minor ] Readme update

* Honor `columnDisableFilters` in useFilters by setting `canFilters` correct value
  • Loading branch information
gargroh authored and tannerlinsley committed Aug 2, 2019
1 parent 39c2b15 commit 118b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin-hooks/useFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function useMain(instance) {
// Determine if a column is filterable
column.canFilter = accessor
? getFirstDefined(
columnDisableFilters,
columnDisableFilters === true ? false : undefined,
disableFilters === true ? false : undefined,
true
)
Expand Down

0 comments on commit 118b873

Please sign in to comment.