File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,19 +116,19 @@ function fieldFilter(items, filterFields) {
116
116
}
117
117
118
118
// Search method that also takes into account transformations needed
119
- function findAny ( dsSearchIn , dsSearchAs , obj , str ) {
119
+ function findAny ( dsSearchIn , dsSearchAs , rowData , str ) {
120
120
// Convert the search string to lower case
121
121
str = String ( str ) . toLowerCase ( )
122
- for ( const key in obj ) {
122
+ for ( const key in rowData ) {
123
123
if ( dsSearchIn . length === 0 || dsSearchIn . indexOf ( key ) !== - 1 ) {
124
- const value = String ( obj [ key ] ) . toLowerCase ( )
124
+ const value = String ( rowData [ key ] ) . toLowerCase ( )
125
125
for ( const field in dsSearchAs ) {
126
126
if ( field === key ) {
127
127
// Found key in dsSearchAs so we pass the value and the search string to a search function
128
128
// that returns true/false and we return that if true.
129
129
/* Check if dsSearchAs is a function (passed from the template) */
130
130
if ( typeof dsSearchAs [ field ] === 'function' ) {
131
- const res = dsSearchAs [ field ] ( value , str )
131
+ const res = dsSearchAs [ field ] ( value , str , rowData )
132
132
if ( res === true ) {
133
133
return res
134
134
}
You can’t perform that action at this time.
0 commit comments