Skip to content

Commit 07c96c8

Browse files
fixed indentation
1 parent 3fd8e09 commit 07c96c8

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/store/TableDataStore.js

+11-12
Original file line numberDiff line numberDiff line change
@@ -352,22 +352,21 @@ export class TableDataStore {
352352
let key = keys[i];
353353
if (this.colInfos[key] && row[key]) {
354354
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+
}
365365
});
366366
if (valid) break;
367367
}
368368
}
369-
370-
return valid;
369+
return valid;
371370
});
372371
this.isOnFilter = true;
373372
}

0 commit comments

Comments
 (0)