Skip to content

Commit

Permalink
Allow filtering on multiple users (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts committed Nov 30, 2023
1 parent f897215 commit 07c78d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grocy-chores-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ class GrocyChoresCard extends LitElement {
}

_checkMatchUserFilter(item) {
let user = this.filter_user === "current" ? this._getUserId() : this.filter_user;
return item.__user_id === user;
let userArray = [].concat(this.filter_user).map((user) => user === "current" ? this._getUserId() : user);;
return userArray.some((user) => item.__user_id == user);
}

_checkMatchTaskCategoryFilter(item) {
Expand Down

0 comments on commit 07c78d4

Please sign in to comment.