Skip to content

Commit

Permalink
fix: don't detect filterable
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Mar 29, 2021
1 parent c6037fe commit 898d7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/renderers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function resolve<T>(directValue: T | undefined, globalValue: T | undefine
export function isFilterAble<D extends AnyObject = UnknownObject>(
props: unknown
): props is { column: UseFiltersColumnProps<D> } {
if (!props || (props as UnknownObject).column != null) {
if (!props || (props as UnknownObject).column == null) {
return false;
}
return typeof ((props as UnknownObject).column as UseFiltersColumnProps<D>).setFilter === 'function';
Expand Down

0 comments on commit 898d7be

Please sign in to comment.