make filters caseinsensitive

This commit is contained in:
j3d1 2019-12-13 02:17:54 +01:00
parent 62a26f4f9c
commit 4bb8900d3a

View file

@ -13,7 +13,7 @@ export default {
.map(column => {
const field = item[column] + '';
const filter = this.filters[column];
return field.includes(filter);
return field.toLowerCase().includes(filter.toLowerCase());
}).reduce((acc, nxt) => acc && nxt, true)
);
const sortByOrd = R.sortBy(R.prop(this.sortBy));