File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -352,22 +352,21 @@ export class TableDataStore {
352
352
let key = keys [ i ] ;
353
353
if ( this . colInfos [ key ] && row [ key ] ) {
354
354
searchTextArray . forEach ( text => {
355
- let filterVal = text . toLowerCase ( ) ;
356
- let targetVal = row [ key ] ;
357
- const { format, filterFormatted, formatExtraData } = this . colInfos [ key ] ;
358
-
359
- if ( filterFormatted && format ) {
360
- targetVal = format ( targetVal , row , formatExtraData ) ;
361
- }
362
- if ( targetVal . toString ( ) . toLowerCase ( ) . indexOf ( filterVal ) !== - 1 ) {
363
- valid = true ;
364
- }
355
+ let filterVal = text . toLowerCase ( ) ;
356
+ let targetVal = row [ key ] ;
357
+ const { format, filterFormatted, formatExtraData } = this . colInfos [ key ] ;
358
+
359
+ if ( filterFormatted && format ) {
360
+ targetVal = format ( targetVal , row , formatExtraData ) ;
361
+ }
362
+ if ( targetVal . toString ( ) . toLowerCase ( ) . indexOf ( filterVal ) !== - 1 ) {
363
+ valid = true ;
364
+ }
365
365
} ) ;
366
366
if ( valid ) break ;
367
367
}
368
368
}
369
-
370
- return valid ;
369
+ return valid ;
371
370
} ) ;
372
371
this . isOnFilter = true ;
373
372
}
You can’t perform that action at this time.
0 commit comments