3
I’m making a list filter by name, it works, but if I have a name registered as Gor, the filter does not work when I type.
computed: {
filtered: function () {
const search = this.configs.search
const users = _.orderBy(this.users, this.configs.orderBy, this.configs.order)
if (_.isEmpty(search)) {
return users;
}
return _.filter(users, user => user.name.indexOf(search) >= 0)
}
}