Skip to content

Commit

Permalink
Fix filter for english version
Browse files Browse the repository at this point in the history
  • Loading branch information
litodaldegan committed Nov 28, 2018
1 parent 9e02ffe commit 548ca16
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -664,7 +664,7 @@ export default {
new RegExp(this.search).test(item.id))
.filter(item =>
new RegExp(this.filterGroup.search.toLowerCase())
.test(item[this.filterGroup.group].name_pt.toLowerCase()))
.test((t_(item[this.filterGroup.group]), 'name').toLowerCase()))
.sort(this.getCompareFunction(this.order))
.slice(0, this.maxVisibleItems);
} else {
Expand All @@ -682,7 +682,7 @@ export default {
filter_by_group(search, group) {
this.visibleItems = this.items[this.depth]
.filter(item =>
search.toLowerCase() === item[group].name_pt.toLowerCase())
search.toLowerCase() === this.t_(item[group], 'name').toLowerCase())
.sort(this.getCompareFunction(this.order))
.slice(0, this.maxVisibleItems);
},
Expand Down

0 comments on commit 548ca16

Please sign in to comment.