File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ const includesString: FilterFn<any> = (
66 filterValue : string
77) => {
88 const search = filterValue . toLowerCase ( )
9- return Boolean ( row . getValue < string > ( columnId ) ?. toLowerCase ( ) . includes ( search ) )
9+ return Boolean (
10+ row
11+ . getValue < string | null > ( columnId )
12+ ?. toString ( )
13+ ?. toLowerCase ( )
14+ . includes ( search )
15+ )
1016}
1117
1218includesString . autoRemove = ( val : any ) => testFalsey ( val )
@@ -16,7 +22,9 @@ const includesStringSensitive: FilterFn<any> = (
1622 columnId : string ,
1723 filterValue : string
1824) => {
19- return Boolean ( row . getValue < string > ( columnId ) ?. includes ( filterValue ) )
25+ return Boolean (
26+ row . getValue < string | null > ( columnId ) ?. toString ( ) ?. includes ( filterValue )
27+ )
2028}
2129
2230includesStringSensitive . autoRemove = ( val : any ) => testFalsey ( val )
@@ -27,7 +35,8 @@ const equalsString: FilterFn<any> = (
2735 filterValue : string
2836) => {
2937 return (
30- row . getValue < string > ( columnId ) ?. toLowerCase ( ) === filterValue . toLowerCase ( )
38+ row . getValue < string | null > ( columnId ) ?. toString ( ) ?. toLowerCase ( ) ===
39+ filterValue ?. toLowerCase ( )
3140 )
3241}
3342
You can’t perform that action at this time.
0 commit comments