@@ -33,7 +33,7 @@ const contains = <TData extends MRT_RowData>(
3333) =>
3434 row
3535 . getValue < number | string > ( id )
36- . toString ( )
36+ ? .toString ( )
3737 . toLowerCase ( )
3838 . trim ( )
3939 . includes ( filterValue . toString ( ) . toLowerCase ( ) . trim ( ) ) ;
@@ -47,7 +47,7 @@ const startsWith = <TData extends MRT_RowData>(
4747) =>
4848 row
4949 . getValue < number | string > ( id )
50- . toString ( )
50+ ? .toString ( )
5151 . toLowerCase ( )
5252 . trim ( )
5353 . startsWith ( filterValue . toString ( ) . toLowerCase ( ) . trim ( ) ) ;
@@ -61,7 +61,7 @@ const endsWith = <TData extends MRT_RowData>(
6161) =>
6262 row
6363 . getValue < number | string > ( id )
64- . toString ( )
64+ ? .toString ( )
6565 . toLowerCase ( )
6666 . trim ( )
6767 . endsWith ( filterValue . toString ( ) . toLowerCase ( ) . trim ( ) ) ;
@@ -73,7 +73,7 @@ const equals = <TData extends MRT_RowData>(
7373 id : string ,
7474 filterValue : number | string ,
7575) =>
76- row . getValue < number | string > ( id ) . toString ( ) . toLowerCase ( ) . trim ( ) ===
76+ row . getValue < number | string > ( id ) ? .toString ( ) . toLowerCase ( ) . trim ( ) ===
7777 filterValue ?. toString ( ) . toLowerCase ( ) . trim ( ) ;
7878
7979equals . autoRemove = ( val : any ) => ! val ;
@@ -83,7 +83,7 @@ const notEquals = <TData extends MRT_RowData>(
8383 id : string ,
8484 filterValue : number | string ,
8585) =>
86- row . getValue < number | string > ( id ) . toString ( ) . toLowerCase ( ) . trim ( ) !==
86+ row . getValue < number | string > ( id ) ? .toString ( ) . toLowerCase ( ) . trim ( ) !==
8787 filterValue . toString ( ) . toLowerCase ( ) . trim ( ) ;
8888
8989notEquals . autoRemove = ( val : any ) => ! val ;
@@ -95,7 +95,7 @@ const greaterThan = <TData extends MRT_RowData>(
9595) =>
9696 ! isNaN ( + filterValue ) && ! isNaN ( + row . getValue < number | string > ( id ) )
9797 ? + row . getValue < number | string > ( id ) > + filterValue
98- : row . getValue < number | string > ( id ) . toString ( ) . toLowerCase ( ) . trim ( ) >
98+ : row . getValue < number | string > ( id ) ? .toString ( ) . toLowerCase ( ) . trim ( ) >
9999 filterValue ?. toString ( ) . toLowerCase ( ) . trim ( ) ;
100100
101101greaterThan . autoRemove = ( val : any ) => ! val ;
@@ -115,7 +115,7 @@ const lessThan = <TData extends MRT_RowData>(
115115) =>
116116 ! isNaN ( + filterValue ) && ! isNaN ( + row . getValue < number | string > ( id ) )
117117 ? + row . getValue < number | string > ( id ) < + filterValue
118- : row . getValue < number | string > ( id ) . toString ( ) . toLowerCase ( ) . trim ( ) <
118+ : row . getValue < number | string > ( id ) ? .toString ( ) . toLowerCase ( ) . trim ( ) <
119119 filterValue ?. toString ( ) . toLowerCase ( ) . trim ( ) ;
120120
121121lessThan . autoRemove = ( val : any ) => ! val ;
@@ -162,15 +162,15 @@ const empty = <TData extends MRT_RowData>(
162162 row : Row < TData > ,
163163 id : string ,
164164 _filterValue : number | string ,
165- ) => ! row . getValue < number | string > ( id ) . toString ( ) . trim ( ) ;
165+ ) => ! row . getValue < number | string > ( id ) ? .toString ( ) . trim ( ) ;
166166
167167empty . autoRemove = ( val : any ) => ! val ;
168168
169169const notEmpty = < TData extends MRT_RowData > (
170170 row : Row < TData > ,
171171 id : string ,
172172 _filterValue : number | string ,
173- ) => ! ! row . getValue < number | string > ( id ) . toString ( ) . trim ( ) ;
173+ ) => ! ! row . getValue < number | string > ( id ) ? .toString ( ) . trim ( ) ;
174174
175175notEmpty . autoRemove = ( val : any ) => ! val ;
176176
0 commit comments